Class: Workhorse::Daemon::Worker
- Inherits:
-
Object
- Object
- Workhorse::Daemon::Worker
- Defined in:
- lib/workhorse/daemon.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pid ⇒ Object
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(id, name, &block) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(id, name, &block) ⇒ Worker
Returns a new instance of Worker.
9 10 11 12 13 |
# File 'lib/workhorse/daemon.rb', line 9 def initialize(id, name, &block) @id = id @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/workhorse/daemon.rb', line 6 def block @block end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/workhorse/daemon.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/workhorse/daemon.rb', line 5 def name @name end |
#pid ⇒ Object
Returns the value of attribute pid.
7 8 9 |
# File 'lib/workhorse/daemon.rb', line 7 def pid @pid end |