class BackgroundJobs::JobFactory

Public Class Methods

build(job_name, attributes = []) click to toggle source
# File lib/background_jobs/job_factory.rb, line 5
def self.build(job_name, attributes = [])
  JobRegistry.instance.get_class!(job_name).new(*attributes)
end