Class: Arel::Nodes::TSVector

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, language: nil) ⇒ TSVector

Returns a new instance of TSVector.



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

def initialize(attribute, language: nil)
  @attribute = attribute
  @language = Arel::Nodes.build_quoted(language) if language
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



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

def attribute
  @attribute
end

#languageObject (readonly)

Returns the value of attribute language.



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

def language
  @language
end