Class: DelayedJobWorkerPool::WorkerInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed_job_worker_pool/worker_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_idObject (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