Class: AttrSearchableGrammar::Nodes::FulltextExpression
- Inherits:
-
Object
- Object
- AttrSearchableGrammar::Nodes::FulltextExpression
- Includes:
- Base
- Defined in:
- lib/attr_searchable_grammar/nodes.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(collection, node) ⇒ FulltextExpression
constructor
A new instance of FulltextExpression.
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
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
116 117 118 |
# File 'lib/attr_searchable_grammar/nodes.rb', line 116 def collection @collection end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
116 117 118 |
# File 'lib/attr_searchable_grammar/nodes.rb', line 116 def node @node end |