Class: ParadeDB::Arel::Nodes::QueryCast

Inherits:
Arel::Nodes::Node
  • Object
show all
Defined in:
lib/parade_db/arel/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ QueryCast

Returns a new instance of QueryCast.



50
51
52
# File 'lib/parade_db/arel/nodes.rb', line 50

def initialize(expr)
  @expr = expr
end

Instance Attribute Details

#exprObject (readonly)

Returns the value of attribute expr.



48
49
50
# File 'lib/parade_db/arel/nodes.rb', line 48

def expr
  @expr
end

Instance Method Details

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


58
59
60
61
# File 'lib/parade_db/arel/nodes.rb', line 58

def eql?(other)
  self.class == other.class &&
    expr == other.expr
end

#hashObject



54
55
56
# File 'lib/parade_db/arel/nodes.rb', line 54

def hash
  [self.class, expr].hash
end