Class: ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper

Inherits:
Object
  • Object
show all
Defined in:
activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job_data) ⇒ JobWrapper

Returns a new instance of JobWrapper.


29
30
31
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 29

def initialize(job_data)
  @job_data = job_data
end

Instance Attribute Details

#job_dataObject

Returns the value of attribute job_data


27
28
29
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 27

def job_data
  @job_data
end

Instance Method Details

#performObject


33
34
35
# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 33

def perform
  Base.execute(job_data)
end