class method
self.new
Ruby on Rails 4.2.9
Since v4.2.9Signature
self.new(*arguments)
Creates a new job instance. Takes the arguments that will be passed to the perform method.
Parameters
-
argumentsrest
Source
# File activejob/lib/active_job/core.rb, line 59
def initialize(*arguments)
@arguments = arguments
@job_id = SecureRandom.uuid
@queue_name = self.class.queue_name
end
Defined in activejob/lib/active_job/core.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Core