Class: AgnosticBackend::Queryable::Expressions::Where
- Inherits:
-
Expression
- Object
- TreeNode
- Expression
- AgnosticBackend::Queryable::Expressions::Where
- Defined in:
- lib/agnostic_backend/queryable/expressions/expression.rb
Instance Attribute Summary
Attributes inherited from TreeNode
Instance Method Summary collapse
- #criterion ⇒ Object
-
#initialize(criterion:, context:) ⇒ Where
constructor
A new instance of Where.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(criterion:, context:) ⇒ Where
Returns a new instance of Where.
8 9 10 |
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 8 def initialize(criterion:, context:) super([criterion], context) end |
Instance Method Details
#criterion ⇒ Object
12 13 14 |
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 12 def criterion children.first end |