Class: Sunspot::Query::Spellcheck
- Inherits:
-
Connective::Conjunction
- Object
- Connective::Conjunction
- Sunspot::Query::Spellcheck
- Defined in:
- lib/sunspot/sunspot_spellcheck.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Spellcheck
constructor
A new instance of Spellcheck.
- #to_params ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Spellcheck
14 15 16 |
# File 'lib/sunspot/sunspot_spellcheck.rb', line 14 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/sunspot/sunspot_spellcheck.rb', line 12 def @options end |
Instance Method Details
#to_params ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/sunspot/sunspot_spellcheck.rb', line 18 def to_params = {} @options.each do |key, val| ['spellcheck.' + Sunspot::Util.method_case(key)] = val end { spellcheck: true }.merge() end |