Class: ParadeDB::Arel::Nodes::BoostCast
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- ParadeDB::Arel::Nodes::BoostCast
- Defined in:
- lib/parade_db/arel/nodes.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
-
#factor ⇒ Object
readonly
Returns the value of attribute factor.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(expr, factor) ⇒ BoostCast
constructor
A new instance of BoostCast.
Constructor Details
#initialize(expr, factor) ⇒ BoostCast
Returns a new instance of BoostCast.
10 11 12 13 |
# File 'lib/parade_db/arel/nodes.rb', line 10 def initialize(expr, factor) @expr = expr @factor = factor end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
8 9 10 |
# File 'lib/parade_db/arel/nodes.rb', line 8 def expr @expr end |
#factor ⇒ Object (readonly)
Returns the value of attribute factor.
8 9 10 |
# File 'lib/parade_db/arel/nodes.rb', line 8 def factor @factor end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
19 20 21 22 23 |
# File 'lib/parade_db/arel/nodes.rb', line 19 def eql?(other) self.class == other.class && expr == other.expr && factor == other.factor end |
#hash ⇒ Object
15 16 17 |
# File 'lib/parade_db/arel/nodes.rb', line 15 def hash [self.class, expr, factor].hash end |