Class: Arel::Nodes::TSQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression, language: nil) ⇒ TSQuery

Returns a new instance of TSQuery.



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

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

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



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

def expression
  @expression
end

#languageObject (readonly)

Returns the value of attribute language.



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

def language
  @language
end