Class: ActiveJob::ConfiguredJob
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activejob/lib/active_job/configured_job.rb |
Class Method Summary
- .new(job_class, options = {}) ⇒ ConfiguredJob constructor
Instance Method Summary
Constructor Details
.new(job_class, options = {}) ⇒ ConfiguredJob
# File 'activejob/lib/active_job/configured_job.rb', line 5
def initialize(job_class, = {}) @options = @job_class = job_class end
Instance Method Details
#perform_all_later(multi_args)
[ GitHub ]# File 'activejob/lib/active_job/configured_job.rb', line 18
def perform_all_later(multi_args) @job_class.perform_all_later(multi_args, options: @options) end
#perform_later
[ GitHub ]# File 'activejob/lib/active_job/configured_job.rb', line 14
def perform_later(...) @job_class.new(...).enqueue @options end
#perform_now
[ GitHub ]# File 'activejob/lib/active_job/configured_job.rb', line 10
def perform_now(...) @job_class.new(...).set(@options).perform_now end