Class: LoggingWorker::JobRun
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LoggingWorker::JobRun
- Defined in:
- app/models/logging_worker/job_run.rb
Instance Method Summary collapse
Instance Method Details
#completed! ⇒ Object
14 15 16 17 18 |
# File 'app/models/logging_worker/job_run.rb', line 14 def completed! self.successful = false if successful.nil? self.completed_at = Time.now save! end |
#logger ⇒ Object
6 7 8 |
# File 'app/models/logging_worker/job_run.rb', line 6 def logger @logger ||= Logger.new(StringIO.new(log)) end |
#successful! ⇒ Object
10 11 12 |
# File 'app/models/logging_worker/job_run.rb', line 10 def successful! self.successful = true end |