Class: Searchkick::MultiSearch
- Inherits:
-
Object
- Object
- Searchkick::MultiSearch
- Defined in:
- lib/searchkick/multi_search.rb
Instance Attribute Summary collapse
-
#queries ⇒ Object
readonly
Returns the value of attribute queries.
Instance Method Summary collapse
-
#initialize(queries) ⇒ MultiSearch
constructor
A new instance of MultiSearch.
- #perform ⇒ Object
Constructor Details
#initialize(queries) ⇒ MultiSearch
Returns a new instance of MultiSearch.
5 6 7 |
# File 'lib/searchkick/multi_search.rb', line 5 def initialize(queries) @queries = queries end |
Instance Attribute Details
#queries ⇒ Object (readonly)
Returns the value of attribute queries.
3 4 5 |
# File 'lib/searchkick/multi_search.rb', line 3 def queries @queries end |
Instance Method Details
#perform ⇒ Object
9 10 11 12 13 |
# File 'lib/searchkick/multi_search.rb', line 9 def perform if queries.any? perform_search(queries) end end |