Class: AgnosticBackend::Queryable::Expressions::Where

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:) ⇒ 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

#criterionObject



12
13
14
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 12

def criterion
  children.first
end