Class: AgnosticBackend::Queryable::Criteria::Between
Direct Known Subclasses
GreaterAndLess, GreaterAndLessEqual, GreaterEqualAndLess, GreaterEqualAndLessEqual
Instance Attribute Summary
Attributes inherited from Ternary
#attribute, #left_value, #right_value
Attributes inherited from TreeNode
Instance Method Summary collapse
-
#initialize(attribute:, left_value:, right_value:, context: nil) ⇒ Between
constructor
A new instance of Between.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(attribute:, left_value:, right_value:, context: nil) ⇒ Between
Returns a new instance of Between.
14 15 16 17 18 19 |
# File 'lib/agnostic_backend/queryable/criteria/ternary.rb', line 14 def initialize(attribute:, left_value:, right_value:, context: nil) attribute = attribute_component(attribute: attribute, context: context) left_value = value_component(value: left_value, context: context, type: attribute.type) right_value = value_component(value: right_value, context: context, type: attribute.type) super(attribute: attribute, left_value: left_value, right_value: right_value, context: context) end |