Class: Influxdb::Arel::Nodes::And
- Defined in:
- lib/influxdb/arel/nodes/and.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(children) ⇒ And
constructor
A new instance of And.
- #left ⇒ Object
- #right ⇒ Object
Methods inherited from Node
Methods included from Extensions::BooleanPredications
Constructor Details
#initialize(children) ⇒ And
Returns a new instance of And.
7 8 9 10 |
# File 'lib/influxdb/arel/nodes/and.rb', line 7 def initialize(children) super() @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
5 6 7 |
# File 'lib/influxdb/arel/nodes/and.rb', line 5 def children @children end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
24 25 26 |
# File 'lib/influxdb/arel/nodes/and.rb', line 24 def eql?(other) self.class == other.class && children == other.children end |
#hash ⇒ Object
20 21 22 |
# File 'lib/influxdb/arel/nodes/and.rb', line 20 def hash children.hash end |
#left ⇒ Object
12 13 14 |
# File 'lib/influxdb/arel/nodes/and.rb', line 12 def left children.first end |
#right ⇒ Object
16 17 18 |
# File 'lib/influxdb/arel/nodes/and.rb', line 16 def right children[1] end |