class Pagoid::PagingAdapter

Attributes

attributes[RW]
paginatable[RW]

Public Class Methods

new(paginatable, attributes = {}) click to toggle source
Calls superclass method
# File lib/pagoid/paging_adapter.rb, line 7
def initialize(paginatable, attributes = {})
  self.paginatable = paginatable
  self.attributes = attributes
  super coerce
end

Public Instance Methods

chain(object, state = {}) click to toggle source
# File lib/pagoid/paging_adapter.rb, line 23
def chain(object, state = {})
  self.class.new object, state
end
coerce(coerceable = paginatable) click to toggle source
# File lib/pagoid/paging_adapter.rb, line 13
def coerce(coerceable = paginatable)
  coerceable
end