Class: 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.
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, item, message, stack, execution_time) ⇒ TestResult
constructor
A new instance of TestResult.
Constructor Details
#initialize(type, item, message, stack, execution_time) ⇒ TestResult
Returns a new instance of TestResult.
12 13 14 15 16 17 18 |
# File 'lib/sapphire/Testing/TestResult.rb', line 12 def initialize(type, item, , stack, execution_time) @item = item @execution_time = execution_time @messages = @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 |
#item ⇒ Object (readonly)
Returns the value of attribute item.
7 8 9 |
# File 'lib/sapphire/Testing/TestResult.rb', line 7 def item @item end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/sapphire/Testing/TestResult.rb', line 6 def @message end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
10 11 12 |
# File 'lib/sapphire/Testing/TestResult.rb', line 10 def @messages end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
9 10 11 |
# File 'lib/sapphire/Testing/TestResult.rb', line 9 def stack @stack end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/sapphire/Testing/TestResult.rb', line 8 def type @type end |