Class: Sidekiq::Promise::Worker
- Inherits:
-
MrDarcy::Promise::Celluloid
- Object
- MrDarcy::Promise::Celluloid
- Sidekiq::Promise::Worker
- Defined in:
- lib/sidekiq/promise/worker.rb
Instance Attribute Summary collapse
-
#jid ⇒ Object
Returns the value of attribute jid.
Instance Method Summary collapse
-
#initialize(worker_klass, *args) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(worker_klass, *args) ⇒ Worker
Returns a new instance of Worker.
7 8 9 10 11 12 |
# File 'lib/sidekiq/promise/worker.rb', line 7 def initialize worker_klass, *args @worker_klass = worker_klass @args = args super proc { subscribe } end |
Instance Attribute Details
#jid ⇒ Object
Returns the value of attribute jid.
5 6 7 |
# File 'lib/sidekiq/promise/worker.rb', line 5 def jid @jid end |