Sha256: 5ed930a07b9e3df078c837dc73879e8c956be24173127d9c1aea753e077aa391
Contents?: true
Size: 579 Bytes
Versions: 9
Compression:
Stored size: 579 Bytes
Contents
class Quaderno::Collection < Array include Quaderno::Helpers::RateLimit def request_options=(options) @request_options = options end def collection_type=(collection_type) @collection_type = collection_type end def has_more=(has_more_response) @has_more = has_more_response end def next_page_url=(next_page_url) @next_page_url = next_page_url end def has_more? @has_more == 'true' end def next_page return Quaderno::Collection.new unless has_more? @collection_type.all_from_url(@next_page_url, @request_options) end end
Version data entries
9 entries across 9 versions & 1 rubygems