Exception: ActiverecordCursorPagination::CursorError
- Defined in:
- lib/activerecord_cursor_pagination.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
Instance Method Summary collapse
-
#initialize(msg = 'Cursor error', cursor = nil) ⇒ CursorError
constructor
A new instance of CursorError.
Constructor Details
#initialize(msg = 'Cursor error', cursor = nil) ⇒ CursorError
Returns a new instance of CursorError.
30 31 32 33 |
# File 'lib/activerecord_cursor_pagination.rb', line 30 def initialize(msg='Cursor error',cursor=nil) super(msg) @cursor = cursor end |
Instance Attribute Details
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor.
28 29 30 |
# File 'lib/activerecord_cursor_pagination.rb', line 28 def cursor @cursor end |