Class: AgnosticBackend::Queryable::Expressions::Filter
- Inherits:
-
Expression
- Object
- TreeNode
- Expression
- AgnosticBackend::Queryable::Expressions::Filter
- 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:) ⇒ Filter
constructor
A new instance of Filter.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(criterion:, context:) ⇒ Filter
Returns a new instance of Filter.
19 20 21 |
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 19 def initialize(criterion:, context:) super([criterion], context) end |
Instance Method Details
#criterion ⇒ Object
23 24 25 |
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 23 def criterion children.first end |