Class: Diddy::RunResult::Scenario
- Inherits:
-
Object
- Object
- Diddy::RunResult::Scenario
- Defined in:
- lib/diddy/run_result.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#script ⇒ Object
Returns the value of attribute script.
-
#steps ⇒ Object
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(description) ⇒ Scenario
constructor
A new instance of Scenario.
- #result ⇒ Object
Constructor Details
#initialize(description) ⇒ Scenario
Returns a new instance of Scenario.
96 97 98 |
# File 'lib/diddy/run_result.rb', line 96 def initialize(description) self.description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
94 95 96 |
# File 'lib/diddy/run_result.rb', line 94 def description @description end |
#script ⇒ Object
Returns the value of attribute script.
94 95 96 |
# File 'lib/diddy/run_result.rb', line 94 def script @script end |
#steps ⇒ Object
Returns the value of attribute steps.
94 95 96 |
# File 'lib/diddy/run_result.rb', line 94 def steps @steps end |
Instance Method Details
#result ⇒ Object
104 105 106 |
# File 'lib/diddy/run_result.rb', line 104 def result steps.all? { |step| step.result } end |