Class: Resque::Plugins::Async::Worker
- Inherits:
-
Object
- Object
- Resque::Plugins::Async::Worker
- Defined in:
- lib/resque/plugins/async/worker.rb
Class Method Summary collapse
Class Method Details
.perform(klass, *args) ⇒ Object
12 13 14 |
# File 'lib/resque/plugins/async/worker.rb', line 12 def self.perform(klass, *args) klass.constantize.find(args.shift).send(args.shift, *args) end |
.queue ⇒ Object
8 9 10 |
# File 'lib/resque/plugins/async/worker.rb', line 8 def self.queue @queue end |
.queue=(name) ⇒ Object
4 5 6 |
# File 'lib/resque/plugins/async/worker.rb', line 4 def self.queue=(name) @queue = name end |