Class: Influxdb::Arel::Nodes::Time

Inherits:
Unary show all
Defined in:
lib/influxdb/arel/nodes/time.rb

Constant Summary

Constants inherited from Node

Node::ENTENSIONS

Instance Attribute Summary

Attributes inherited from Unary

#expr

Instance Method Summary collapse

Methods inherited from Unary

#eql?, #hash, #initialize_copy

Methods inherited from Node

#extend, #to_sql

Methods included from Extensions::BooleanPredications

#and, #or

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