Class: JobContracts::SidekiqJobHashMiddleware
- Inherits:
-
Object
- Object
- JobContracts::SidekiqJobHashMiddleware
- Defined in:
- lib/job_contracts/sidekiq_job_hash_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, job, _queue) ⇒ Object
5 6 7 8 |
# File 'lib/job_contracts/sidekiq_job_hash_middleware.rb', line 5 def call(worker, job, _queue) worker.instance_variable_set :@sidekiq_job_hash, job yield end |