class Sunspot::Query::Spellcheck

Attributes

options[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/sunspot_suggest/sunspot/query/spellcheck.rb, line 7
def initialize(options = {})
  @options = options
end

Public Instance Methods

to_params() click to toggle source
# File lib/sunspot_suggest/sunspot/query/spellcheck.rb, line 11
def to_params
  options = {}
  @options.each do |key, val|
    options["spellcheck." + Sunspot::Util.method_case(key)] = val
  end
  { :spellcheck => true }.merge(options)
end