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