Class: Solr::Query::Request::Spellcheck::Disabled

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/query/request/spellcheck.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(previous_search_term: nil, collated_search_term: nil) ⇒ Disabled

Returns a new instance of Disabled.



8
9
10
11
# File 'lib/solr/query/request/spellcheck.rb', line 8

def initialize(previous_search_term: nil, collated_search_term: nil)
  @previous_search_term = previous_search_term
  @collated_search_term = collated_search_term
end

Instance Attribute Details

#collated_search_termObject (readonly)

Returns the value of attribute collated_search_term.



6
7
8
# File 'lib/solr/query/request/spellcheck.rb', line 6

def collated_search_term
  @collated_search_term
end

#previous_search_termObject (readonly)

Returns the value of attribute previous_search_term.



6
7
8
# File 'lib/solr/query/request/spellcheck.rb', line 6

def previous_search_term
  @previous_search_term
end

Instance Method Details

#collated?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/solr/query/request/spellcheck.rb', line 17

def collated?
  collated_search_term.present?
end

#disabled?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/solr/query/request/spellcheck.rb', line 21

def disabled?
  true
end

#inspectObject



25
26
27
# File 'lib/solr/query/request/spellcheck.rb', line 25

def inspect
  'Disabled'
end

#to_hObject



13
14
15
# File 'lib/solr/query/request/spellcheck.rb', line 13

def to_h
  {}
end