Class: Chore::Strategy::WorkerInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/chore/strategies/worker/helpers/worker_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pid) ⇒ WorkerInfo

Returns a new instance of WorkerInfo.



7
8
9
10
# File 'lib/chore/strategies/worker/helpers/worker_info.rb', line 7

def initialize(pid)
  @pid = pid
  @socket = nil
end

Instance Attribute Details

#pidObject

Holds meta information about the worker: pid, and connection socket



5
6
7
# File 'lib/chore/strategies/worker/helpers/worker_info.rb', line 5

def pid
  @pid
end

#socketObject

Holds meta information about the worker: pid, and connection socket



5
6
7
# File 'lib/chore/strategies/worker/helpers/worker_info.rb', line 5

def socket
  @socket
end