Module: ChartMogul::Concerns::PageableWithCursor
- Included in:
- ChartMogul::Contacts, ChartMogul::CustomerInvoices, ChartMogul::Customers, Enrichment::Customers, Invoices, Metrics::Activities, Metrics::Customers::Activities, Metrics::Customers::Subscriptions, Notes, Opportnities, PlanGroup::PlanGroups, PlanGroups::Plans, Plans, SubscriptionEvents, Subscriptions
- Defined in:
- lib/chartmogul/concerns/pageable_with_cursor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/chartmogul/concerns/pageable_with_cursor.rb', line 6 def self.included(base) base.instance_eval do readonly_attr :has_more readonly_attr :cursor end end |
Instance Method Details
#next(options = {}) ⇒ Object
13 14 15 |
# File 'lib/chartmogul/concerns/pageable_with_cursor.rb', line 13 def next( = {}) self.class.all(.merge(cursor: cursor)) end |