Class: Resque::Plugins::Async::Worker
- Inherits:
-
Object
- Object
- Resque::Plugins::Async::Worker
- Extended by:
- LockTimeout
- Defined in:
- lib/resque/plugins/async/worker.rb
Class Attribute Summary collapse
-
.lock_timeout ⇒ Object
Returns the value of attribute lock_timeout.
-
.loner ⇒ Object
Returns the value of attribute loner.
-
.queue ⇒ Object
Returns the value of attribute queue.
Class Method Summary collapse
Class Attribute Details
.lock_timeout ⇒ Object
Returns the value of attribute lock_timeout.
14 15 16 |
# File 'lib/resque/plugins/async/worker.rb', line 14 def lock_timeout @lock_timeout end |
.loner ⇒ Object
Returns the value of attribute loner.
13 14 15 |
# File 'lib/resque/plugins/async/worker.rb', line 13 def loner @loner end |
.queue ⇒ Object
Returns the value of attribute queue.
12 13 14 |
# File 'lib/resque/plugins/async/worker.rb', line 12 def queue @queue end |
Class Method Details
.perform(klass, *args) ⇒ Object
16 17 18 |
# File 'lib/resque/plugins/async/worker.rb', line 16 def perform klass, *args klass.constantize.find(args.shift).send(args.shift, *args) end |