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.
325 326 327 328 329 330 331 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 325 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
414 415 416 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 414 def country @country end |
#country_instance ⇒ Object
333 334 335 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 333 def country_instance @instance end |
#headers ⇒ Object
418 419 420 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 418 def headers @headers end |
#status_code ⇒ Object
422 423 424 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 422 def status_code @status_code end |