Sha256: ddb97510c77299c1a3fd23d7ea01e03670d45510032bba82652532c085225a6d
Contents?: true
Size: 614 Bytes
Versions: 4
Compression:
Stored size: 614 Bytes
Contents
module CoinbaseCommerceClient module APIResources module Base module List def list(params = {}) resp = @client.request(:get, self::RESOURCE_PATH.to_s, params) Util.convert_to_api_object(resp.data, @client, self) end def auto_paging(params = {}, &blk) loop do page = list(params) last_id = page.data.empty? ? nil : page.data.last.id break if last_id.nil? params[:starting_after] = last_id page.data.each(&blk) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems