Class: TireAsyncIndex::Workers::Sidekiq

Inherits:
UpdateIndex show all
Includes:
Sidekiq::Worker
Defined in:
lib/tire_async_index/workers/sidekiq.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UpdateIndex

#find_class_const, #get_finder_method, #process

Class Method Details

.run(action_type, class_name, id) ⇒ Object



7
8
9
10
# File 'lib/tire_async_index/workers/sidekiq.rb', line 7

def self.run(action_type, class_name, id)
  TireAsyncIndex::Workers::Sidekiq
    .perform_async(action_type, class_name, id)
end

Instance Method Details

#perform(action_type, class_name, id) ⇒ Object



12
13
14
# File 'lib/tire_async_index/workers/sidekiq.rb', line 12

def perform(action_type, class_name, id)
  process(action_type, class_name, id)
end