Class: ActiveKit::Search::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/active_kit/search/manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(given_class:, given_describer:) ⇒ Manager

Returns a new instance of Manager.



4
5
6
7
8
9
# File 'lib/active_kit/search/manager.rb', line 4

def initialize(given_class:, given_describer:)
  @given_class = given_class
  @given_describer = given_describer

  Rails.application.eager_load!
end

Instance Method Details

#clearObject



15
16
17
# File 'lib/active_kit/search/manager.rb', line 15

def clear
  task(name: :clear, log_name: "Clearing")
end

#dropObject



19
20
21
# File 'lib/active_kit/search/manager.rb', line 19

def drop
  task(name: :drop, log_name: "Dropping")
end

#reloadObject



11
12
13
# File 'lib/active_kit/search/manager.rb', line 11

def reload
  task(name: :reload, log_name: "Reloading")
end