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.
352 353 354 355 356 357 358 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 352 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
441 442 443 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 441 def available_phone_number_country @available_phone_number_country end |
#available_phone_number_country_instance ⇒ Object
360 361 362 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 360 def available_phone_number_country_instance @instance end |
#headers ⇒ Object
445 446 447 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 445 def headers @headers end |
#status_code ⇒ Object
449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb', line 449 def status_code @status_code end |