Class: AgnosticBackend::Queryable::Expressions::Select

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(attributes:, context:) ⇒ Select

Returns a new instance of Select.



29
30
31
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 29

def initialize(attributes:, context:)
  super(attributes.map { |a| Attribute.new(a, parent: self, context: context) }, context)
end