Method: Twilio::REST::Pricing::V1::PhoneNumberList::CountryContext#fetch

Defined in:
lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb

#fetchCountryInstance

Fetch the CountryInstance

Returns:



150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb', line 150

def fetch

    headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
    
    
    
    
    
    payload = @version.fetch('GET', @uri, headers: headers)
    CountryInstance.new(
        @version,
        payload,
        iso_country: @solution[:iso_country],
    )
end