Class: ParamsReady::Pagination::CursorBuilder::Literal
- Inherits:
-
Object
- Object
- ParamsReady::Pagination::CursorBuilder::Literal
- Defined in:
- lib/params_ready/pagination/cursor.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#pk ⇒ Object
readonly
Returns the value of attribute pk.
Instance Method Summary collapse
-
#initialize(key, value, pk) ⇒ Literal
constructor
A new instance of Literal.
- #quoted ⇒ Object
- #rvalue(_) ⇒ Object
- #value ⇒ Object
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
51 52 53 |
# File 'lib/params_ready/pagination/cursor.rb', line 51 def key @key end |
#pk ⇒ Object (readonly)
Returns the value of attribute pk.
52 53 54 |
# File 'lib/params_ready/pagination/cursor.rb', line 52 def pk @pk end |
Instance Method Details
#quoted ⇒ Object
61 62 63 |
# File 'lib/params_ready/pagination/cursor.rb', line 61 def quoted @value end |
#rvalue(_) ⇒ Object
69 70 71 |
# File 'lib/params_ready/pagination/cursor.rb', line 69 def rvalue(_) @value end |
#value ⇒ Object
65 66 67 |
# File 'lib/params_ready/pagination/cursor.rb', line 65 def value @value.value end |