Class: ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper
- Defined in:
- lib/active_job/queue_adapters/resque_adapter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(job) ⇒ JobWrapper
constructor
A new instance of JobWrapper.
- #to_s ⇒ Object
Constructor Details
#initialize(job) ⇒ JobWrapper
Returns a new instance of JobWrapper.
21 22 23 |
# File 'lib/active_job/queue_adapters/resque_adapter.rb', line 21 def initialize(job) @queue = job.queue_name end |
Class Method Details
.perform(job_name, *args) ⇒ Object
16 17 18 |
# File 'lib/active_job/queue_adapters/resque_adapter.rb', line 16 def perform(job_name, *args) job_name.constantize.new.perform *Parameters.deserialize(args) end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/active_job/queue_adapters/resque_adapter.rb', line 25 def to_s self.class.name end |