Class: Mongoid::FTS::Raw

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#_limitObject

Returns the value of attribute _limit.



112
113
114
# File 'lib/mongoid-fts.rb', line 112

def _limit
  @_limit
end

#_modelsObject

Returns the value of attribute _models.



113
114
115
# File 'lib/mongoid-fts.rb', line 113

def _models
  @_models
end

#_searchObject

Returns the value of attribute _search.



110
111
112
# File 'lib/mongoid-fts.rb', line 110

def _search
  @_search
end

#_textObject

Returns the value of attribute _text.



111
112
113
# File 'lib/mongoid-fts.rb', line 111

def _text
  @_text
end