Class: Test::Unit::WorkerContext
- Inherits:
-
Object
- Object
- Test::Unit::WorkerContext
- Defined in:
- lib/test/unit/worker-context.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#run_context ⇒ Object
readonly
Returns the value of attribute run_context.
Instance Method Summary collapse
-
#initialize(id, run_context, result) ⇒ WorkerContext
constructor
A new instance of WorkerContext.
Constructor Details
#initialize(id, run_context, result) ⇒ WorkerContext
Returns a new instance of WorkerContext.
13 14 15 16 17 |
# File 'lib/test/unit/worker-context.rb', line 13 def initialize(id, run_context, result) @id = id @run_context = run_context @result = result end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/test/unit/worker-context.rb', line 10 def id @id end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
12 13 14 |
# File 'lib/test/unit/worker-context.rb', line 12 def result @result end |
#run_context ⇒ Object (readonly)
Returns the value of attribute run_context.
11 12 13 |
# File 'lib/test/unit/worker-context.rb', line 11 def run_context @run_context end |