Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb,
lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb
Instance Method Summary collapse
- #available_phone_number_country ⇒ Object
- #available_phone_number_country_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ AvailablePhoneNumberCountryListResponse
constructor
A new instance of AvailablePhoneNumberCountryListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ AvailablePhoneNumberCountryListResponse
Returns a new instance of AvailablePhoneNumberCountryListResponse.
360 361 362 363 364 365 366 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 360 def initialize(version, payload, key) @available_phone_number_country_instance = payload.body[key].map do |data| AvailablePhoneNumberCountryInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#available_phone_number_country ⇒ Object
449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 449 def available_phone_number_country @available_phone_number_country end |
#available_phone_number_country_instance ⇒ Object
368 369 370 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 368 def available_phone_number_country_instance @instance end |
#headers ⇒ Object
453 454 455 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 453 def headers @headers end |
#status_code ⇒ Object
457 458 459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 457 def status_code @status_code end |