Class: GearedPagination::PortionAtCursor::Predicate

Inherits:
Object
  • Object
show all
Defined in:
lib/geared_pagination/portions/portion_at_cursor.rb

Direct Known Subclasses

Equal, Inequal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order) ⇒ Predicate

Returns a new instance of Predicate.



109
110
111
# File 'lib/geared_pagination/portions/portion_at_cursor.rb', line 109

def initialize(order)
  @order = order
end

Instance Attribute Details

#orderObject (readonly)

Returns the value of attribute order.



106
107
108
# File 'lib/geared_pagination/portions/portion_at_cursor.rb', line 106

def order
  @order
end

Instance Method Details

#condition_on(table, value) ⇒ Object

Raises:

  • (NotImplementedError)


113
114
115
# File 'lib/geared_pagination/portions/portion_at_cursor.rb', line 113

def condition_on(table, value)
  raise NotImplementedError
end