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