Class: Influxdb::Arel::Nodes::Time
- Defined in:
- lib/influxdb/arel/nodes/time.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Unary
Instance Method Summary collapse
-
#initialize(expr) ⇒ Time
constructor
A new instance of Time.
Methods inherited from Unary
#eql?, #hash, #initialize_copy
Methods inherited from Node
Methods included from Extensions::BooleanPredications
Constructor Details
#initialize(expr) ⇒ Time
Returns a new instance of Time.
5 6 7 8 9 |
# File 'lib/influxdb/arel/nodes/time.rb', line 5 def initialize(expr) expr = SqlLiteral.new(expr) if String === expr expr = SqlLiteral.new(expr.to_s) if Symbol === expr super(expr) end |