Class: AgnosticBackend::Queryable::Operations::Unary

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

Direct Known Subclasses

Not, OrderQualifier

Instance Attribute Summary collapse

Attributes inherited from TreeNode

#children, #context

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #accept

Methods included from Utilities

included

Constructor Details

#initialize(operand:, context: nil) ⇒ Unary

Returns a new instance of Unary.



7
8
9
10
# File 'lib/agnostic_backend/queryable/operations/unary.rb', line 7

def initialize(operand:, context: nil)
  @operand = operand
  super([operand], context)
end

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand.



5
6
7
# File 'lib/agnostic_backend/queryable/operations/unary.rb', line 5

def operand
  @operand
end