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.



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

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