class Harvesting::Models::HarvestRecordCollection
Attributes
entries[R]
Public Class Methods
new(attrs, query_opts = {}, opts = {})
click to toggle source
Calls superclass method
Harvesting::Models::Base::new
# File lib/harvesting/models/harvest_record_collection.rb, line 19 def initialize(attrs, query_opts = {}, opts = {}) super(attrs, opts) @query_opts = query_opts @api_page = attrs end
Public Instance Methods
fetch_next_page()
click to toggle source
# File lib/harvesting/models/harvest_record_collection.rb, line 37 def fetch_next_page raise NotImplementedError end
next_page_query_opts()
click to toggle source
# File lib/harvesting/models/harvest_record_collection.rb, line 33 def next_page_query_opts @query_opts.merge(page: page + 1) end
page()
click to toggle source
# File lib/harvesting/models/harvest_record_collection.rb, line 25 def page @attributes['page'] end
size()
click to toggle source
# File lib/harvesting/models/harvest_record_collection.rb, line 29 def size total_entries end