Class: Sidekiq::Promise::Worker

Inherits:
MrDarcy::Promise::Celluloid
  • Object
show all
Defined in:
lib/sidekiq/promise/worker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#jidObject

Returns the value of attribute jid.



5
6
7
# File 'lib/sidekiq/promise/worker.rb', line 5

def jid
  @jid
end