class Sunspot::Query::Spellcheck

Attributes

options[RW]

Public Class Methods

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

Public Instance Methods

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