lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb in twilio-ruby-5.39.0

- old
+ new

@@ -156,15 +156,13 @@ 'HighRiskTollfraudNumbersEnabled' => high_risk_tollfraud_numbers_enabled, 'PageToken' => page_token, 'Page' => page_number, 'PageSize' => page_size, }) - response = @version.page( - 'GET', - @uri, - params - ) + + response = @version.page('GET', @uri, params) + CountryPage.new(@version, response, @solution) end ## # Retrieve a single page of CountryInstance records from the API. @@ -237,21 +235,15 @@ # Dependents @highrisk_special_prefixes = nil end ## - # Fetch a CountryInstance + # Fetch the CountryInstance # @return [CountryInstance] Fetched CountryInstance def fetch - params = Twilio::Values.of({}) + payload = @version.fetch('GET', @uri) - payload = @version.fetch( - 'GET', - @uri, - params, - ) - CountryInstance.new(@version, payload, iso_code: @solution[:iso_code], ) end ## # Access the highrisk_special_prefixes @@ -376,10 +368,10 @@ def links @properties['links'] end ## - # Fetch a CountryInstance + # Fetch the CountryInstance # @return [CountryInstance] Fetched CountryInstance def fetch context.fetch end \ No newline at end of file