Class: TireAsyncIndex::Workers::Resque
Class Method Summary
collapse
Methods inherited from UpdateIndex
#find_class_const, #get_finder_method, #process
Class Method Details
10
11
12
|
# File 'lib/tire_async_index/workers/resque.rb', line 10
def self.perform(action_type, class_name, id)
self.new.process(action_type, class_name, id)
end
|
.queue ⇒ Object
4
|
# File 'lib/tire_async_index/workers/resque.rb', line 4
def self.queue; TireAsyncIndex.queue end
|
.run(action_type, class_name, id) ⇒ Object
6
7
8
|
# File 'lib/tire_async_index/workers/resque.rb', line 6
def self.run(action_type, class_name, id)
::Resque.enqueue TireAsyncIndex::Workers::Resque, action_type, class_name, id
end
|