Class: Searchkick::MultiSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/searchkick/multi_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#queriesObject (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

#performObject


9
10
11
12
13
# File 'lib/searchkick/multi_search.rb', line 9

def perform
  if queries.any?
    perform_search(queries)
  end
end