Class: MongoQL::Expression::DateNode
- Inherits:
-
MongoQL::Expression
- Object
- MongoQL::Expression
- MongoQL::Expression::DateNode
- Includes:
- DateOperators
- Defined in:
- lib/mongo_ql/expression/date_note.rb
Constant Summary
Constants included from DateOperators
Constants inherited from MongoQL::Expression
Constants included from CollectionOperators
CollectionOperators::AGGREGATE_OPS
Constants included from UnaryOperators
Constants included from BinaryOperators
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression) ⇒ DateNode
constructor
A new instance of DateNode.
- #to_ast ⇒ Object
Methods inherited from MongoQL::Expression
#as_date, #if_null, #then, #type
Methods included from StringOperators
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
#expression ⇒ Object
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_ast ⇒ Object
15 16 17 |
# File 'lib/mongo_ql/expression/date_note.rb', line 15 def to_ast expression.to_ast end |