Class: Sunspot::Query::Spellcheck
- Inherits:
-
Connective::Conjunction
- Object
- Connective::Abstract
- Connective::Conjunction
- Sunspot::Query::Spellcheck
- Defined in:
- lib/sunspot/query/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
Methods inherited from Connective::Conjunction
Methods inherited from Connective::Abstract
#add_component, #add_conjunction, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_positive_restriction, #add_positive_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #negate, #negated?, #to_boolean_phrase
Methods included from Filter
Constructor Details
#initialize(options = {}) ⇒ Spellcheck
Returns a new instance of Spellcheck.
6 7 8 |
# File 'lib/sunspot/query/spellcheck.rb', line 6 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/sunspot/query/spellcheck.rb', line 4 def @options end |
Instance Method Details
#to_params ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/sunspot/query/spellcheck.rb', line 10 def to_params = {} @options.each do |key, val| ["spellcheck." + Sunspot::Util.method_case(key.to_s)] = val end { :spellcheck => true }.merge() end |