Class: ParadeDB::Arel::Nodes::SlopCast
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- ParadeDB::Arel::Nodes::SlopCast
- Defined in:
- lib/parade_db/arel/nodes.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(expr, distance) ⇒ SlopCast
constructor
A new instance of SlopCast.
Constructor Details
#initialize(expr, distance) ⇒ SlopCast
Returns a new instance of SlopCast.
68 69 70 71 |
# File 'lib/parade_db/arel/nodes.rb', line 68 def initialize(expr, distance) @expr = expr @distance = distance end |
Instance Attribute Details
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
66 67 68 |
# File 'lib/parade_db/arel/nodes.rb', line 66 def distance @distance end |
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
66 67 68 |
# File 'lib/parade_db/arel/nodes.rb', line 66 def expr @expr end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
77 78 79 80 81 |
# File 'lib/parade_db/arel/nodes.rb', line 77 def eql?(other) self.class == other.class && expr == other.expr && distance == other.distance end |
#hash ⇒ Object
73 74 75 |
# File 'lib/parade_db/arel/nodes.rb', line 73 def hash [self.class, expr, distance].hash end |