Class: TestQueue::Worker
- Inherits:
-
Object
- Object
- TestQueue::Worker
- Defined in:
- lib/test_queue/runner.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#host ⇒ Object
Returns the value of attribute host.
-
#num ⇒ Object
Returns the value of attribute num.
-
#output ⇒ Object
Returns the value of attribute output.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(pid, num) ⇒ Worker
constructor
A new instance of Worker.
- #lines ⇒ Object
Constructor Details
#initialize(pid, num) ⇒ Worker
Returns a new instance of Worker.
9 10 11 12 13 14 15 |
# File 'lib/test_queue/runner.rb', line 9 def initialize(pid, num) @pid = pid @num = num @start_time = Time.now @output = '' @stats = {} end |
Instance Attribute Details
#end_time ⇒ Object
Returns the value of attribute end_time.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def end_time @end_time end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def host @host end |
#num ⇒ Object
Returns the value of attribute num.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def num @num end |
#output ⇒ Object
Returns the value of attribute output.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def output @output end |
#pid ⇒ Object
Returns the value of attribute pid.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def pid @pid end |
#start_time ⇒ Object
Returns the value of attribute start_time.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def start_time @start_time end |
#stats ⇒ Object
Returns the value of attribute stats.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def stats @stats end |
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/test_queue/runner.rb', line 6 def status @status end |
Instance Method Details
#lines ⇒ Object
17 18 19 |
# File 'lib/test_queue/runner.rb', line 17 def lines @output.split("\n") end |