Module: Influxdb::Arel::Extensions::Math

Included in:
Nodes::Attribute, Nodes::Function, Nodes::InfixOperation, Nodes::Now
Defined in:
lib/influxdb/arel/extensions/math.rb

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



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

def *(other)
  Nodes::Multiplication.new(self, other)
end

#+(other) ⇒ Object



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

def +(other)
  Nodes::Grouping.new(Nodes::Addition.new(self, other))
end

#-(other) ⇒ Object



13
14
15
# File 'lib/influxdb/arel/extensions/math.rb', line 13

def -(other)
  Nodes::Grouping.new(Nodes::Subtraction.new(self, other))
end

#/(other) ⇒ Object



17
18
19
# File 'lib/influxdb/arel/extensions/math.rb', line 17

def /(other)
  Nodes::Division.new(self, other)
end