Class: Twilio::REST::Routes::V3::IsoCountryCodeListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/routes/v3/iso_country_code.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key) ⇒ IsoCountryCodeListResponse

Returns a new instance of IsoCountryCodeListResponse.

Parameters:



225
226
227
228
229
230
231
# File 'lib/twilio-ruby/rest/routes/v3/iso_country_code.rb', line 225

def initialize(version, payload, key)
   @iso_country_code_instance = payload.body[key].map do |data|
    IsoCountryCodeInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#iso_country_code_instance ⇒ Object



233
234
235
# File 'lib/twilio-ruby/rest/routes/v3/iso_country_code.rb', line 233

def iso_country_code_instance
    @instance
end