Class: Resqued::WorkerSummary
- Inherits:
-
Object
- Object
- Resqued::WorkerSummary
- Defined in:
- lib/resqued/worker.rb
Overview
Metadata for an exited listener worker.
Instance Attribute Summary collapse
-
#alive_time_sec ⇒ Object
readonly
Returns the value of attribute alive_time_sec.
-
#process_status ⇒ Object
readonly
Returns the value of attribute process_status.
Instance Method Summary collapse
-
#initialize(alive_time_sec:, process_status:) ⇒ WorkerSummary
constructor
A new instance of WorkerSummary.
Constructor Details
#initialize(alive_time_sec:, process_status:) ⇒ WorkerSummary
Returns a new instance of WorkerSummary.
129 130 131 132 |
# File 'lib/resqued/worker.rb', line 129 def initialize(alive_time_sec:, process_status:) @alive_time_sec = alive_time_sec @process_status = process_status end |
Instance Attribute Details
#alive_time_sec ⇒ Object (readonly)
Returns the value of attribute alive_time_sec.
127 128 129 |
# File 'lib/resqued/worker.rb', line 127 def alive_time_sec @alive_time_sec end |
#process_status ⇒ Object (readonly)
Returns the value of attribute process_status.
127 128 129 |
# File 'lib/resqued/worker.rb', line 127 def process_status @process_status end |