Class: MongoQL::Expression::DateNode

Inherits:
MongoQL::Expression show all
Includes:
DateOperators
Defined in:
lib/mongo_ql/expression/date_note.rb

Constant Summary

Constants included from DateOperators

DateOperators::DATE_OPERATORS

Constants inherited from MongoQL::Expression

FORMATING_OPS

Constants included from CollectionOperators

CollectionOperators::AGGREGATE_OPS

Constants included from UnaryOperators

UnaryOperators::UNARY_OPS

Constants included from BinaryOperators

BinaryOperators::BINARY_OPS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from MongoQL::Expression

#as_date, #if_null, #then, #type

Methods included from StringOperators

#concat, #substr, #trim

Methods included from CollectionOperators

#any?, #concat_arrays, #contains, #filter, #map, #reduce

Constructor Details

#initialize(expression) ⇒ DateNode

Returns a new instance of DateNode.



11
12
13
# File 'lib/mongo_ql/expression/date_note.rb', line 11

def initialize(expression)
  @expression = expression
end

Instance Attribute Details

#expressionObject

Returns the value of attribute expression.



9
10
11
# File 'lib/mongo_ql/expression/date_note.rb', line 9

def expression
  @expression
end

Instance Method Details

#to_astObject



15
16
17
# File 'lib/mongo_ql/expression/date_note.rb', line 15

def to_ast
  expression.to_ast
end