Exception: BackgroundJobs::UnknownJob

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/background_jobs/job_registry.rb

Instance Method Summary collapse

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_sObject



9
10
11
# File 'lib/background_jobs/job_registry.rb', line 9

def to_s
  "Unknown job '#{@job_name}'!"
end