Class: Mongoid::FTS::Raw
- Inherits:
-
Array
- Object
- Array
- Mongoid::FTS::Raw
- Defined in:
- lib/mongoid-fts/raw.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.
9 10 11 12 13 |
# File 'lib/mongoid-fts/raw.rb', line 9 def initialize(_searches, = {}) replace(_searches) ensure .each{|k, v| send("#{ k }=", v)} end |
Instance Attribute Details
#_limit ⇒ Object
Returns the value of attribute _limit.
6 7 8 |
# File 'lib/mongoid-fts/raw.rb', line 6 def _limit @_limit end |
#_models ⇒ Object
Returns the value of attribute _models.
7 8 9 |
# File 'lib/mongoid-fts/raw.rb', line 7 def _models @_models end |
#_search ⇒ Object
Returns the value of attribute _search.
4 5 6 |
# File 'lib/mongoid-fts/raw.rb', line 4 def _search @_search end |
#_text ⇒ Object
Returns the value of attribute _text.
5 6 7 |
# File 'lib/mongoid-fts/raw.rb', line 5 def _text @_text end |