Exception: BackgroundJobs::UnknownJob
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BackgroundJobs::UnknownJob
- Defined in:
- lib/background_jobs/job_registry.rb
Instance Method Summary collapse
-
#initialize(job_name) ⇒ UnknownJob
constructor
A new instance of UnknownJob.
- #to_s ⇒ Object
Constructor Details
#initialize(job_name) ⇒ UnknownJob
Returns a new instance of UnknownJob.
5 6 7 |
# File 'lib/background_jobs/job_registry.rb', line 5 def initialize(job_name) @job_name = job_name end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/background_jobs/job_registry.rb', line 9 def to_s "Unknown job '#{@job_name}'!" end |