Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MachineToMachineListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::MachineToMachineListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ MachineToMachineListResponse
constructor
A new instance of MachineToMachineListResponse.
- #machine_to_machine ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ MachineToMachineListResponse
Returns a new instance of MachineToMachineListResponse.
363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 363 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @machine_to_machine = data_list.map do |data| MachineToMachineInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
379 380 381 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 379 def headers @headers end |
#machine_to_machine ⇒ Object
375 376 377 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 375 def machine_to_machine @machine_to_machine end |
#status_code ⇒ Object
383 384 385 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb', line 383 def status_code @status_code end |