Class: AgnosticBackend::Queryable::Expressions::Filter

Inherits:
Expression show all
Defined in:
lib/agnostic_backend/queryable/expressions/expression.rb

Instance Attribute Summary

Attributes inherited from TreeNode

#children, #context

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #accept

Methods included from Utilities

included

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

#criterionObject



23
24
25
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 23

def criterion
  children.first
end