Class: DelayedJobWorkerPool::WorkerInfo
- Inherits:
-
Object
- Object
- DelayedJobWorkerPool::WorkerInfo
- Defined in:
- lib/delayed_job_worker_pool/worker_info.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#process_id ⇒ Object
readonly
Returns the value of attribute process_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ WorkerInfo
constructor
A new instance of WorkerInfo.
Constructor Details
#initialize(attributes) ⇒ WorkerInfo
Returns a new instance of WorkerInfo.
5 6 7 8 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 5 def initialize(attributes) @process_id = attributes.fetch(:process_id) @name = attributes.fetch(:name) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 3 def name @name end |
#process_id ⇒ Object (readonly)
Returns the value of attribute process_id.
3 4 5 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 3 def process_id @process_id end |