Sha256: bab4390f17e1ed4effee423a151a081c66fd3ecc4a82b90127995648f8914d45
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
module Harvesting module Models class ProjectTaskAssignments < HarvestRecordCollection def initialize(attrs, query_opts = {}, opts = {}) super(attrs.reject {|k,v| k == "task_assignments" }, query_opts, opts) @entries = attrs["task_assignments"].map do |entry| ProjectTaskAssignment.new(entry, harvest_client: opts[:harvest_client]) end end def fetch_next_page @entries += harvest_client.task_assignments(next_page_query_opts).entries @attributes['page'] = page + 1 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems