Class: AgnosticBackend::Queryable::Expressions::Offset

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(value:, context:) ⇒ Offset

Returns a new instance of Offset.



55
56
57
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 55

def initialize(value:, context:)
  super([Value.new(value, parent: self, context: context)], context)
end

Instance Method Details

#offsetObject



59
60
61
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 59

def offset
  children.first
end