Class: BackgroundJobs::Job
- Inherits:
-
Object
- Object
- BackgroundJobs::Job
- Defined in:
- lib/background_jobs/job.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
writeonly
Sets the attribute id.
Instance Method Summary collapse
Instance Attribute Details
#id=(value) ⇒ Object (writeonly)
Sets the attribute id
3 4 5 |
# File 'lib/background_jobs/job.rb', line 3 def id=(value) @id = value end |
Instance Method Details
#error(job, exception) ⇒ Object
13 14 15 |
# File 'lib/background_jobs/job.rb', line 13 def error(job, exception) Airbrake.notify exception end |
#execute ⇒ Object
9 10 11 |
# File 'lib/background_jobs/job.rb', line 9 def execute raise NotImplementedError end |
#perform ⇒ Object
5 6 7 |
# File 'lib/background_jobs/job.rb', line 5 def perform execute end |