Class: Influxdb::Arel::Nodes::Function
- Includes:
- Extensions::AliasPredication, Extensions::Math
- Defined in:
- lib/influxdb/arel/nodes/function.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#expressions ⇒ Object
Returns the value of attribute expressions.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(expr) ⇒ Function
constructor
A new instance of Function.
Methods included from Extensions::Math
Methods included from Extensions::AliasPredication
Methods inherited from Node
Methods included from Extensions::BooleanPredications
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
#expressions ⇒ Object
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
19 20 21 |
# File 'lib/influxdb/arel/nodes/function.rb', line 19 def eql?(other) self.class == other.class && expressions == other.expressions end |
#hash ⇒ Object
15 16 17 |
# File 'lib/influxdb/arel/nodes/function.rb', line 15 def hash expressions.hash end |