Class: Chore::Strategy::WorkerInfo
- Inherits:
-
Object
- Object
- Chore::Strategy::WorkerInfo
- Defined in:
- lib/chore/strategies/worker/helpers/worker_info.rb
Instance Attribute Summary collapse
-
#pid ⇒ Object
Holds meta information about the worker: pid, and connection socket.
-
#socket ⇒ Object
Holds meta information about the worker: pid, and connection socket.
Instance Method Summary collapse
-
#initialize(pid) ⇒ WorkerInfo
constructor
A new instance of WorkerInfo.
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
#pid ⇒ Object
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 |
#socket ⇒ Object
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 |