Class: AttrSearchableGrammar::Nodes::FulltextExpression

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/attr_searchable_grammar/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#and, #can_flatten?, #can_group?, #can_optimize?, #finalize!, #flatten!, #fulltext?, #group!, #nodes, #not, #optimize!, #or, #to_sql

Constructor Details

#initialize(collection, node) ⇒ FulltextExpression

Returns a new instance of FulltextExpression.



118
119
120
121
# File 'lib/attr_searchable_grammar/nodes.rb', line 118

def initialize(collection, node)
  @collection = collection
  @node = node
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



116
117
118
# File 'lib/attr_searchable_grammar/nodes.rb', line 116

def collection
  @collection
end

#nodeObject (readonly)

Returns the value of attribute node.



116
117
118
# File 'lib/attr_searchable_grammar/nodes.rb', line 116

def node
  @node
end