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