Module: ChartMogul::Concerns::PageableWithCursor

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(options = {})
  self.class.all(options.merge(cursor: cursor))
end