Class: Gurke::Step::StepResult
- Inherits:
-
Object
- Object
- Gurke::Step::StepResult
- Defined in:
- lib/gurke/step.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize(step, state, err = nil) ⇒ StepResult
constructor
A new instance of StepResult.
- #pending? ⇒ Boolean
- #skipped? ⇒ Boolean
- #success? ⇒ Boolean
Constructor Details
#initialize(step, state, err = nil) ⇒ StepResult
87 88 89 |
# File 'lib/gurke/step.rb', line 87 def initialize(step, state, err = nil) @step, @state, @exception = step, state, err end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
85 86 87 |
# File 'lib/gurke/step.rb', line 85 def exception @exception end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
85 86 87 |
# File 'lib/gurke/step.rb', line 85 def state @state end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
85 86 87 |
# File 'lib/gurke/step.rb', line 85 def step @step end |
Instance Method Details
#failed? ⇒ Boolean
97 98 99 |
# File 'lib/gurke/step.rb', line 97 def failed? @state == :failed end |
#pending? ⇒ Boolean
101 102 103 |
# File 'lib/gurke/step.rb', line 101 def pending? @state == :pending end |
#skipped? ⇒ Boolean
105 106 107 |
# File 'lib/gurke/step.rb', line 105 def skipped? @state == :skipped end |
#success? ⇒ Boolean
109 110 111 |
# File 'lib/gurke/step.rb', line 109 def success? @state == :success end |