Sha256: a4ff29712f5e701cfddb4e9a3aa9109b7c9f35599380561ddebd05ef55281de6
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
module Octobat module APIOperations module List def list(filters={}, opts={}) api_key, headers = Util.parse_opts(opts) api_key ||= @api_key #opts = Util.normalize_opts(opts) #opts = @opts.merge(opts) if @opts response, api_key = Octobat.request(:get, url, api_key, filters, headers) obj = ListObject.construct_from(response, api_key) obj.filters = filters.dup obj.cursors[:ending_before] = obj.filters.delete(:ending_before) obj.cursors[:starting_after] = obj.filters.delete(:starting_after) obj end alias :all :list end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octobat-0.0.12 | lib/octobat/api_operations/list.rb |
octobat-0.0.11 | lib/octobat/api_operations/list.rb |