Class: ActiverecordCursorPagination::Serializer
- Inherits:
-
Object
- Object
- ActiverecordCursorPagination::Serializer
- Defined in:
- lib/activerecord_cursor_pagination/serializer.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#deserialize(str) ⇒ Hash
abstract
Deserialize the cursor.
-
#serialize(hash) ⇒ String
abstract
Serialize the hash representation of the cursor.
Instance Method Details
#deserialize(str) ⇒ Hash
This method is abstract.
Deserialize the cursor.
11 12 13 |
# File 'lib/activerecord_cursor_pagination/serializer.rb', line 11 def deserialize(str) raise NotImplementedError end |
#serialize(hash) ⇒ String
This method is abstract.
Serialize the hash representation of the cursor.
23 24 25 |
# File 'lib/activerecord_cursor_pagination/serializer.rb', line 23 def serialize(hash) raise NotImplementedError end |