Class: Oselvar::Var::Core::StepObservation
- Inherits:
-
Data
- Object
- Data
- Oselvar::Var::Core::StepObservation
- Defined in:
- lib/oselvar/var/core/execute.rb
Overview
Per-step outcome emitted to the optional observer.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#example_index ⇒ Object
readonly
Returns the value of attribute example_index.
-
#example_name ⇒ Object
readonly
Returns the value of attribute example_name.
-
#ordinal ⇒ Object
readonly
Returns the value of attribute ordinal.
-
#outcome ⇒ Object
readonly
Returns the value of attribute outcome.
-
#step_file ⇒ Object
readonly
Returns the value of attribute step_file.
Instance Method Summary collapse
-
#initialize(example_name:, example_index:, ordinal:, step_file:, outcome:, error: nil) ⇒ StepObservation
constructor
A new instance of StepObservation.
Constructor Details
#initialize(example_name:, example_index:, ordinal:, step_file:, outcome:, error: nil) ⇒ StepObservation
Returns a new instance of StepObservation.
22 23 24 |
# File 'lib/oselvar/var/core/execute.rb', line 22 def initialize(example_name:, example_index:, ordinal:, step_file:, outcome:, error: nil) super end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def error @error end |
#example_index ⇒ Object (readonly)
Returns the value of attribute example_index
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def example_index @example_index end |
#example_name ⇒ Object (readonly)
Returns the value of attribute example_name
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def example_name @example_name end |
#ordinal ⇒ Object (readonly)
Returns the value of attribute ordinal
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def ordinal @ordinal end |
#outcome ⇒ Object (readonly)
Returns the value of attribute outcome
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def outcome @outcome end |
#step_file ⇒ Object (readonly)
Returns the value of attribute step_file
21 22 23 |
# File 'lib/oselvar/var/core/execute.rb', line 21 def step_file @step_file end |