Module: Influxdb::Arel::Extensions::BooleanPredications

Included in:
Nodes::Node, Nodes::SqlLiteral
Defined in:
lib/influxdb/arel/extensions/boolean_predications.rb

Instance Method Summary collapse

Instance Method Details

#and(right) ⇒ Object



9
10
11
# File 'lib/influxdb/arel/extensions/boolean_predications.rb', line 9

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

#or(right) ⇒ Object



5
6
7
# File 'lib/influxdb/arel/extensions/boolean_predications.rb', line 5

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