Class: BackgroundJobs::JobFactory
- Inherits:
-
Object
- Object
- BackgroundJobs::JobFactory
- Defined in:
- lib/background_jobs/job_factory.rb
Class Method Summary collapse
Class Method Details
.build(job_name, attributes = []) ⇒ Object
5 6 7 |
# File 'lib/background_jobs/job_factory.rb', line 5 def self.build(job_name, attributes = []) JobRegistry.instance.get_class!(job_name).new(*attributes) end |