lib/uploadcare/entity/decorator/paginator.rb
def next_page
          url = @entity[:next]
          return unless url

          query = URI.decode_www_form(URI(url).query).to_h
          query = query.map { |k, v| [k.to_sym, v] }.to_h
          self.class.list(**query)
        end
# Returns new instance of current object on next page
Returns new instance of current object on next page
Returns new instance of current object on next page
def next_page
          url = @entity[:next]
          return unless url
          query = URI.decode_www_form(URI(url).query).to_h
          query = query.map { |k, v| [k.to_sym, v] }.to_h
          self.class.list(**query)
        end
def next_page url = @entity [ :next ] return unless url query = URI . decode_www_form ( URI ( url ) . query ) . to_h query = query . map { | k , v | [ k . to_sym , v ] } . to_h self . class . list ( ** query ) end
Returns new instance of current object on next page
Returns new instance of current object on next page