Class: Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberContext::AssignedAddOnListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::IncomingPhoneNumberContext::AssignedAddOnListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb,
lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb
Instance Method Summary collapse
- #assigned_add_on ⇒ Object
- #assigned_add_on_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ AssignedAddOnListResponse
constructor
A new instance of AssignedAddOnListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ AssignedAddOnListResponse
Returns a new instance of AssignedAddOnListResponse.
384 385 386 387 388 389 390 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb', line 384 def initialize(version, payload, key) @assigned_add_on_instance = payload.body[key].map do |data| AssignedAddOnInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#assigned_add_on ⇒ Object
473 474 475 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb', line 473 def assigned_add_on @assigned_add_on end |
#assigned_add_on_instance ⇒ Object
392 393 394 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb', line 392 def assigned_add_on_instance @instance end |
#headers ⇒ Object
477 478 479 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb', line 477 def headers @headers end |
#status_code ⇒ Object
481 482 483 |
# File 'lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb', line 481 def status_code @status_code end |