Class: Arel::Nodes::TSRank

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tsvector, tsquery) ⇒ TSRank

Returns a new instance of TSRank.



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

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

Instance Attribute Details

#tsqueryObject (readonly)

Returns the value of attribute tsquery.



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

def tsquery
  @tsquery
end

#tsvectorObject (readonly)

Returns the value of attribute tsvector.



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

def tsvector
  @tsvector
end