Class: Sapphire::Testing::TestResult
- Inherits:
-
Object
- Object
- Sapphire::Testing::TestResult
- Defined in:
- lib/sapphire/Testing/TestResult.rb
Instance Attribute Summary collapse
-
#execution_time ⇒ Object
readonly
Returns the value of attribute execution_time.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#myId ⇒ Object
readonly
Returns the value of attribute myId.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, text, message, stack, execution_time, id) ⇒ TestResult
constructor
A new instance of TestResult.
Constructor Details
#initialize(type, text, message, stack, execution_time, id) ⇒ TestResult
Returns a new instance of TestResult.
13 14 15 16 17 18 19 20 |
# File 'lib/sapphire/Testing/TestResult.rb', line 13 def initialize(type, text, , stack, execution_time, id) @myId = id @text = text @execution_time = execution_time @message = @stack = stack @type = type end |
Instance Attribute Details
#execution_time ⇒ Object (readonly)
Returns the value of attribute execution_time.
5 6 7 |
# File 'lib/sapphire/Testing/TestResult.rb', line 5 def execution_time @execution_time end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/sapphire/Testing/TestResult.rb', line 6 def @message end |
#myId ⇒ Object (readonly)
Returns the value of attribute myId.
7 8 9 |
# File 'lib/sapphire/Testing/TestResult.rb', line 7 def myId @myId end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
10 11 12 |
# File 'lib/sapphire/Testing/TestResult.rb', line 10 def stack @stack end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/sapphire/Testing/TestResult.rb', line 8 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/sapphire/Testing/TestResult.rb', line 9 def type @type end |