Class: Sapphire::Testing::ScenarioResult
- Inherits:
-
Object
- Object
- Sapphire::Testing::ScenarioResult
- Defined in:
- lib/sapphire/Testing/ScenarioResult.rb
Instance Attribute Summary collapse
-
#myId ⇒ Object
Returns the value of attribute myId.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #AddChild(result) ⇒ Object
-
#initialize(text) ⇒ ScenarioResult
constructor
A new instance of ScenarioResult.
- #set_id(id) ⇒ Object
- #set_type(type) ⇒ Object
Constructor Details
#initialize(text) ⇒ ScenarioResult
Returns a new instance of ScenarioResult.
9 10 11 12 13 14 15 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 9 def initialize(text) @text = text @results = [] @leaf = true @myId = -1 @type = 'pass' end |
Instance Attribute Details
#myId ⇒ Object
Returns the value of attribute myId.
6 7 8 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 6 def myId @myId end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
5 6 7 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 5 def results @results end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 7 def type @type end |
Instance Method Details
#AddChild(result) ⇒ Object
17 18 19 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 17 def AddChild(result) @results << result end |
#set_id(id) ⇒ Object
21 22 23 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 21 def set_id(id) @myId = id end |
#set_type(type) ⇒ Object
25 26 27 |
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 25 def set_type(type) @type = type end |