Class: Arel::Nodes::TSRankCD

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/nodes/ts_rank_cd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tsvector, tsquery, normalization = nil) ⇒ TSRankCD

Returns a new instance of TSRankCD.



7
8
9
10
11
# File 'lib/arel/nodes/ts_rank_cd.rb', line 7

def initialize(tsvector, tsquery, normalization=nil)
  @tsvector = tsvector
  @tsquery = tsquery
  @normalization = normalization
end

Instance Attribute Details

#normalizationObject (readonly)

Returns the value of attribute normalization.



5
6
7
# File 'lib/arel/nodes/ts_rank_cd.rb', line 5

def normalization
  @normalization
end

#tsqueryObject (readonly)

Returns the value of attribute tsquery.



5
6
7
# File 'lib/arel/nodes/ts_rank_cd.rb', line 5

def tsquery
  @tsquery
end

#tsvectorObject (readonly)

Returns the value of attribute tsvector.



5
6
7
# File 'lib/arel/nodes/ts_rank_cd.rb', line 5

def tsvector
  @tsvector
end