Class: Influxdb::Arel::Nodes::Function

Inherits:
Node
  • Object
show all
Includes:
AliasPredication, Math
Defined in:
lib/influxdb/arel/nodes/function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Math

#*, #+, #-, #/

Methods included from AliasPredication

#as

Methods inherited from Node

#and, #or, #to_sql

Constructor Details

#initialize(expr) ⇒ Function

Returns a new instance of Function.



10
11
12
13
# File 'lib/influxdb/arel/nodes/function.rb', line 10

def initialize(expr)
  super()
  self.expressions = expr
end

Instance Attribute Details

#expressionsObject

Returns the value of attribute expressions.



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

def expressions
  @expressions
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/influxdb/arel/nodes/function.rb', line 19

def eql?(other)
  self.class == other.class && expressions == other.expressions
end

#hashObject



15
16
17
# File 'lib/influxdb/arel/nodes/function.rb', line 15

def hash
  expressions.hash
end