lib/twilio-ruby/rest/pricing/v1/voice/country.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/pricing/v1/voice/country.rb in twilio-ruby-5.4.5

- old
+ new

@@ -49,11 +49,11 @@ # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) - page = self.page(page_size: limits[:page_size],) + page = self.page(page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## @@ -61,11 +61,11 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. def each limits = @version.read_limits - page = self.page(page_size: limits[:page_size],) + page = self.page(page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end @@ -128,11 +128,11 @@ ## # Build an instance of CountryInstance # @param [Hash] payload Payload response from the API # @return [CountryInstance] CountryInstance def get_instance(payload) - CountryInstance.new(@version, payload,) + CountryInstance.new(@version, payload) end ## # Provide a user friendly representation def to_s @@ -148,11 +148,11 @@ # @return [CountryContext] CountryContext def initialize(version, iso_country) super(version) # Path Solution - @solution = {iso_country: iso_country,} + @solution = {iso_country: iso_country} @uri = "/Voice/Countries/#{@solution[:iso_country]}" end ## # Fetch a CountryInstance @@ -164,11 +164,11 @@ 'GET', @uri, params, ) - CountryInstance.new(@version, payload, iso_country: @solution[:iso_country],) + CountryInstance.new(@version, payload, iso_country: @solution[:iso_country]) end ## # Provide a user friendly representation def to_s @@ -197,19 +197,19 @@ 'price_unit' => payload['price_unit'], } # Context @instance_context = nil - @params = {'iso_country' => iso_country || @properties['iso_country'],} + @params = {'iso_country' => iso_country || @properties['iso_country']} end ## # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # @return [CountryContext] CountryContext for this CountryInstance def context unless @instance_context - @instance_context = CountryContext.new(@version, @params['iso_country'],) + @instance_context = CountryContext.new(@version, @params['iso_country']) end @instance_context end ## \ No newline at end of file