Class: ActiveRecord::Refined::AST::JsonContains
- Defined in:
- lib/active_record/refined/ast.rb
Overview
JSON containment: whether the document holds what is given.
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(operand, value) ⇒ JsonContains
constructor
A new instance of JsonContains.
- #to_arel(table, model) ⇒ Object
Methods inherited from Predicate
Methods inherited from Node
Constructor Details
#initialize(operand, value) ⇒ JsonContains
Returns a new instance of JsonContains.
1118 1119 1120 1121 |
# File 'lib/active_record/refined/ast.rb', line 1118 def initialize(operand, value) @operand = operand @value = value end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
1116 1117 1118 |
# File 'lib/active_record/refined/ast.rb', line 1116 def operand @operand end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
1116 1117 1118 |
# File 'lib/active_record/refined/ast.rb', line 1116 def value @value end |