Class: ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper
- Defined in:
- activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#job_data ⇒ Object
Returns the value of attribute job_data.
Instance Method Summary collapse
- #display_name ⇒ Object
-
#initialize(job_data) ⇒ JobWrapper
constructor
A new instance of JobWrapper.
- #perform ⇒ Object
Constructor Details
#initialize(job_data) ⇒ JobWrapper
Returns a new instance of JobWrapper.
33 34 35 |
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 33 def initialize(job_data) @job_data = job_data end |
Instance Attribute Details
#job_data ⇒ Object
Returns the value of attribute job_data
31 32 33 |
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 31 def job_data @job_data end |
Instance Method Details
#display_name ⇒ Object
37 38 39 |
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 37 def display_name "#{job_data['job_class']} [#{job_data['job_id']}] from DelayedJob(#{job_data['queue_name']}) with arguments: #{job_data['arguments']}" end |