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.
115 116 117 118 119 |
# File 'lib/mongoid-fts.rb', line 115 def initialize(_searches, = {}) replace(_searches) ensure .each{|k, v| send("#{ k }=", v)} end |
Instance Attribute Details
#_limit ⇒ Object
Returns the value of attribute _limit.
112 113 114 |
# File 'lib/mongoid-fts.rb', line 112 def _limit @_limit end |
#_models ⇒ Object
Returns the value of attribute _models.
113 114 115 |
# File 'lib/mongoid-fts.rb', line 113 def _models @_models end |
#_search ⇒ Object
Returns the value of attribute _search.
110 111 112 |
# File 'lib/mongoid-fts.rb', line 110 def _search @_search end |
#_text ⇒ Object
Returns the value of attribute _text.
111 112 113 |
# File 'lib/mongoid-fts.rb', line 111 def _text @_text end |