Class: TireAsyncIndex::Workers::Resque

Inherits:
UpdateIndex show all
Defined in:
lib/tire_async_index/workers/resque.rb

Class Method Summary collapse

Methods inherited from UpdateIndex

#find_class_const, #get_finder_method, #process

Class Method Details

.perform(action_type, class_name, id) ⇒ Object



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

.queueObject



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