Class: Influxdb::Arel::Nodes::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb/arel/nodes/node.rb

Direct Known Subclasses

And, Binary, Function, Now, SelectStatement, Unary

Instance Method Summary collapse

Instance Method Details

#and(right) ⇒ Object



9
10
11
# File 'lib/influxdb/arel/nodes/node.rb', line 9

def and(right)
  Nodes::And.new([self, right])
end

#or(right) ⇒ Object



5
6
7
# File 'lib/influxdb/arel/nodes/node.rb', line 5

def or(right)
  Nodes::Grouping.new(Nodes::Or.new(self, right))
end

#to_sqlObject



13
14
15
# File 'lib/influxdb/arel/nodes/node.rb', line 13

def to_sql
  Visitor.new.accept(self)
end