Class: Mongoid::FTS::Raw
- Inherits:
-
Array
- Object
- Array
- Mongoid::FTS::Raw
- Defined in:
- lib/mongoid-fts.rb
Instance Attribute Summary collapse
-
#_limit ⇒ Object
Returns the value of attribute _limit.
-
#_models ⇒ Object
Returns the value of attribute _models.
-
#_search ⇒ Object
Returns the value of attribute _search.
-
#_text ⇒ Object
Returns the value of attribute _text.
Instance Method Summary collapse
-
#initialize(_searches, options = {}) ⇒ Raw
constructor
A new instance of Raw.
Constructor Details
#initialize(_searches, options = {}) ⇒ Raw
Returns a new instance of Raw.
120 121 122 123 124 |
# File 'lib/mongoid-fts.rb', line 120 def initialize(_searches, = {}) replace(_searches) ensure .each{|k, v| send("#{ k }=", v)} end |
Instance Attribute Details
#_limit ⇒ Object
Returns the value of attribute _limit.
117 118 119 |
# File 'lib/mongoid-fts.rb', line 117 def _limit @_limit end |
#_models ⇒ Object
Returns the value of attribute _models.
118 119 120 |
# File 'lib/mongoid-fts.rb', line 118 def _models @_models end |
#_search ⇒ Object
Returns the value of attribute _search.
115 116 117 |
# File 'lib/mongoid-fts.rb', line 115 def _search @_search end |
#_text ⇒ Object
Returns the value of attribute _text.
116 117 118 |
# File 'lib/mongoid-fts.rb', line 116 def _text @_text end |