Sha256: daa30cef99c235d5ef2eeeffd6545aae95a29ea1e20b4c9cb8d3b77f9e55a5db
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
module Harvesting module Models class Clients < HarvestRecordCollection def initialize(attrs, query_opts = {}, opts = {}) super(attrs.reject {|k,v| k == "clients" }, query_opts, opts) @entries = attrs["clients"].map do |entry| Harvesting::Models::Client.new(entry, harvest_client: opts[:harvest_client]) end end def fetch_next_page @entries += harvest_client.clients(next_page_query_opts).entries @attributes['page'] = page + 1 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
harvesting-0.6.0 | lib/harvesting/models/clients.rb |
harvesting-0.5.1 | lib/harvesting/models/clients.rb |
harvesting-0.5.0 | lib/harvesting/models/clients.rb |