Class: Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::LocalListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::AvailablePhoneNumberCountryContext::LocalListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ LocalListResponse
constructor
A new instance of LocalListResponse.
- #local ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ LocalListResponse
Returns a new instance of LocalListResponse.
371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb', line 371 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @local = data_list.map do |data| LocalInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
387 388 389 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb', line 387 def headers @headers end |
#local ⇒ Object
383 384 385 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb', line 383 def local @local end |
#status_code ⇒ Object
391 392 393 |
# File 'lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb', line 391 def status_code @status_code end |