Class: Twilio::REST::Pricing::V2::CountryListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/pricing/v2/country.rb,
lib/twilio-ruby/rest/pricing/v2/country.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ CountryListResponse

Returns a new instance of CountryListResponse.

Parameters:

  • instance (Array<CountryInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


263
264
265
266
267
268
269
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 263

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

#countryObject



352
353
354
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 352

def country
    @country
end

#country_instanceObject



271
272
273
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 271

def country_instance
    @instance
end

#headersObject



356
357
358
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 356

def headers
  @headers
end

#status_codeObject



360
361
362
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 360

def status_code
  @status_code
end