Class: Schdlr::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/schdlr/job.rb

Instance Method Summary collapse

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