Class: Arel::Nodes::TSRankCD
- Inherits:
-
Node
- Object
- Node
- Arel::Nodes::TSRankCD
- Defined in:
- lib/arel/nodes/ts_rank_cd.rb
Instance Attribute Summary collapse
-
#normalization ⇒ Object
readonly
Returns the value of attribute normalization.
-
#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, normalization = nil) ⇒ TSRankCD
constructor
A new instance of TSRankCD.
Constructor Details
#initialize(tsvector, tsquery, normalization = nil) ⇒ TSRankCD
Returns a new instance of TSRankCD.
9 10 11 12 13 |
# File 'lib/arel/nodes/ts_rank_cd.rb', line 9 def initialize(tsvector, tsquery, normalization=nil) @tsvector = tsvector @tsquery = tsquery @normalization = normalization end |
Instance Attribute Details
#normalization ⇒ Object (readonly)
Returns the value of attribute normalization.
7 8 9 |
# File 'lib/arel/nodes/ts_rank_cd.rb', line 7 def normalization @normalization end |
#tsquery ⇒ Object (readonly)
Returns the value of attribute tsquery.
7 8 9 |
# File 'lib/arel/nodes/ts_rank_cd.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_cd.rb', line 7 def tsvector @tsvector end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
19 20 21 22 23 24 |
# File 'lib/arel/nodes/ts_rank_cd.rb', line 19 def eql? other self.class == other.class && self.tsvector == other.tsvector && self.tsquery == other.tsquery && self.normalization == other.normalization end |
#hash ⇒ Object
15 16 17 |
# File 'lib/arel/nodes/ts_rank_cd.rb', line 15 def hash [@tsvector, @tsquery, @normalization].hash end |