Class: AgnosticBackend::Queryable::Operations::OrderQualifier

Inherits:
Unary show all
Defined in:
lib/agnostic_backend/queryable/operations/unary.rb

Direct Known Subclasses

Ascending, Descending

Instance Attribute Summary

Attributes inherited from Unary

#operand

Attributes inherited from TreeNode

#children, #context

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #accept

Methods included from Utilities

included

Constructor Details

#initialize(attribute:, context: nil) ⇒ OrderQualifier

Returns a new instance of OrderQualifier.



20
21
22
23
# File 'lib/agnostic_backend/queryable/operations/unary.rb', line 20

def initialize(attribute:, context: nil)
  attribute = attribute_component(attribute: attribute, context: context)
  super(operand: attribute, context: context)
end