Class: AgnosticBackend::Queryable::Criteria::Binary
- Defined in:
- lib/agnostic_backend/queryable/criteria/binary.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from TreeNode
Instance Method Summary collapse
-
#initialize(attribute:, value:, context: nil) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(attribute:, value:, context: nil) ⇒ Binary
Returns a new instance of Binary.
7 8 9 10 |
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 7 def initialize(attribute:, value:, context: nil) @attribute, @value = attribute, value super([attribute, value], context) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
5 6 7 |
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 5 def attribute @attribute end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 5 def value @value end |