Sha256: f856bc7b66a78e00ed4a9a6a6d4d64f3ef2d1af2aa3e0c59bf3b2e9249f35a5c
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module Harvesting module Models class TimeEntries < HarvestRecordCollection def initialize(attrs, query_opts = {}, opts = {}) super(attrs.reject {|k,v| k == "time_entries" }, query_opts, opts) @entries = attrs["time_entries"].map do |entry| TimeEntry.new(entry, client: opts[:client]) end end def fetch_next_page @entries += harvest_client.time_entries(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/time_entries.rb |