Class: Schdlr::Job
- Inherits:
-
Object
- Object
- Schdlr::Job
- Defined in:
- lib/schdlr/job.rb
Instance Method Summary collapse
- #failed!(reason) ⇒ Object
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(**args) ⇒ Job
Returns a new instance of Job.
4 5 6 7 8 |
# File 'lib/schdlr/job.rb', line 4 def initialize(**args) args.each do |k,v| self.send("#{k}=", v) end end |
Instance Method Details
#failed!(reason) ⇒ Object
10 11 12 |
# File 'lib/schdlr/job.rb', line 10 def failed!(reason) raise reason.to_s end |