Module: Influxdb::Arel::Math

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

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



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

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

#+(other) ⇒ Object



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

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

#-(other) ⇒ Object



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

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

#/(other) ⇒ Object



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

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