Module: ResqueAsync::Workers::AsyncClassWorker

Included in:
HighPriorityClassMethod, LowPriorityClassMethod, MediumPriorityClassMethod
Defined in:
lib/resque-async/workers.rb

Instance Method Summary collapse

Instance Method Details

#perform(klass, method, args = []) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/resque-async/workers.rb', line 5

def perform(klass, method, args = [])
  if args.empty?
    klass.constantize.send(method)
  else
    klass.constantize.send(method, *args)
  end
end