Class: Solr::Query::Request::Spellcheck::Disabled
- Inherits:
-
Object
- Object
- Solr::Query::Request::Spellcheck::Disabled
- Defined in:
- lib/solr/query/request/spellcheck.rb
Instance Attribute Summary collapse
-
#collated_search_term ⇒ Object
readonly
Returns the value of attribute collated_search_term.
-
#previous_search_term ⇒ Object
readonly
Returns the value of attribute previous_search_term.
Instance Method Summary collapse
- #collated? ⇒ Boolean
- #disabled? ⇒ Boolean
-
#initialize(previous_search_term: nil, collated_search_term: nil) ⇒ Disabled
constructor
A new instance of Disabled.
- #inspect ⇒ Object
- #to_h ⇒ Object
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_term ⇒ Object (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_term ⇒ Object (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
17 18 19 |
# File 'lib/solr/query/request/spellcheck.rb', line 17 def collated? collated_search_term.present? end |
#disabled? ⇒ Boolean
21 22 23 |
# File 'lib/solr/query/request/spellcheck.rb', line 21 def disabled? true end |
#inspect ⇒ Object
25 26 27 |
# File 'lib/solr/query/request/spellcheck.rb', line 25 def inspect 'Disabled' end |
#to_h ⇒ Object
13 14 15 |
# File 'lib/solr/query/request/spellcheck.rb', line 13 def to_h {} end |