Class: ParamsReady::Pagination::CursorBuilder
- Inherits:
-
Object
- Object
- ParamsReady::Pagination::CursorBuilder
- Defined in:
- lib/params_ready/pagination/cursor.rb
Defined Under Namespace
Classes: Cursor, Literal, Selector
Instance Method Summary collapse
- #add(key, column) ⇒ Object
- #build ⇒ Object
-
#initialize(keyset, arel_table, context) ⇒ CursorBuilder
constructor
A new instance of CursorBuilder.
Constructor Details
#initialize(keyset, arel_table, context) ⇒ CursorBuilder
Returns a new instance of CursorBuilder.
7 8 9 10 11 12 |
# File 'lib/params_ready/pagination/cursor.rb', line 7 def initialize(keyset, arel_table, context) @keyset = keyset.freeze @arel_table = arel_table @context = context @select_list = [] end |