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.
-
#worker_group ⇒ Object
readonly
Returns the value of attribute worker_group.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ WorkerInfo
constructor
A new instance of WorkerInfo.
Constructor Details
#initialize(attributes) ⇒ WorkerInfo
Returns a new instance of WorkerInfo.
7 8 9 10 11 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 7 def initialize(attributes) @process_id = attributes.fetch(:process_id) @name = attributes.fetch(:name) @worker_group = attributes.fetch(:worker_group) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 5 def name @name end |
#process_id ⇒ Object (readonly)
Returns the value of attribute process_id.
5 6 7 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 5 def process_id @process_id end |
#worker_group ⇒ Object (readonly)
Returns the value of attribute worker_group.
5 6 7 |
# File 'lib/delayed_job_worker_pool/worker_info.rb', line 5 def worker_group @worker_group end |