Class: Mongoid::FTS::Raw

Inherits:
Array
  • Object
show all
Defined in:
lib/mongoid-fts/raw.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  replace(_searches)
ensure
  options.each{|k, v| send("#{ k }=", v)}
end

Instance Attribute Details

#_limitObject

Returns the value of attribute _limit.



6
7
8
# File 'lib/mongoid-fts/raw.rb', line 6

def _limit
  @_limit
end

#_modelsObject

Returns the value of attribute _models.



7
8
9
# File 'lib/mongoid-fts/raw.rb', line 7

def _models
  @_models
end

#_searchObject

Returns the value of attribute _search.



4
5
6
# File 'lib/mongoid-fts/raw.rb', line 4

def _search
  @_search
end

#_textObject

Returns the value of attribute _text.



5
6
7
# File 'lib/mongoid-fts/raw.rb', line 5

def _text
  @_text
end