lib/harvesting/models/users.rb in harvesting-0.3.0 vs lib/harvesting/models/users.rb in harvesting-0.4.0
- old
+ new
@@ -3,10 +3,10 @@
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])
+ User.new(entry, harvest_client: opts[:harvest_client])
end
end
def fetch_next_page
@entries += harvest_client.users(next_page_query_opts).entries