Class: Twilio::REST::Voice::V1::DialingPermissionsList::CountryListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Voice::V1::DialingPermissionsList::CountryListResponse
- Defined in:
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb
Instance Method Summary collapse
- #country ⇒ Object
- #country_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ CountryListResponse
constructor
A new instance of CountryListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ CountryListResponse
Returns a new instance of CountryListResponse.
333 334 335 336 337 338 339 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 333 def initialize(version, payload, key) @country_instance = payload.body[key].map do |data| CountryInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#country ⇒ Object
422 423 424 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 422 def country @country end |
#country_instance ⇒ Object
341 342 343 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 341 def country_instance @instance end |
#headers ⇒ Object
426 427 428 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 426 def headers @headers end |
#status_code ⇒ Object
430 431 432 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 430 def status_code @status_code end |