Class: Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList::MobileListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberList::MobileListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ MobileListResponse
constructor
A new instance of MobileListResponse.
- #mobile ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ MobileListResponse
Returns a new instance of MobileListResponse.
441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 441 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @mobile = data_list.map do |data| MobileInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
457 458 459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 457 def headers @headers end |
#mobile ⇒ Object
453 454 455 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 453 def mobile @mobile end |
#status_code ⇒ Object
461 462 463 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb', line 461 def status_code @status_code end |