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)


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

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



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

def country
    @country
end

#country_instanceObject



279
280
281
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 279

def country_instance
    @instance
end

#headersObject



364
365
366
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 364

def headers
  @headers
end

#status_codeObject



368
369
370
# File 'lib/twilio-ruby/rest/pricing/v2/country.rb', line 368

def status_code
  @status_code
end