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

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

Constant Summary

Constants inherited from Node

Node::ENTENSIONS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::Math

#*, #+, #-, #/

Methods included from Extensions::AliasPredication

#as

Methods inherited from Node

#extend, #to_sql

Methods included from Extensions::BooleanPredications

#and, #or

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