Class: Oselvar::Var::Core::StepObservation

Inherits:
Data
  • Object
show all
Defined in:
lib/oselvar/var/core/execute.rb

Overview

Per-step outcome emitted to the optional observer.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def error
  @error
end

#example_indexObject (readonly)

Returns the value of attribute example_index

Returns:

  • (Object)

    the current value of example_index



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def example_index
  @example_index
end

#example_nameObject (readonly)

Returns the value of attribute example_name

Returns:

  • (Object)

    the current value of example_name



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def example_name
  @example_name
end

#ordinalObject (readonly)

Returns the value of attribute ordinal

Returns:

  • (Object)

    the current value of ordinal



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def ordinal
  @ordinal
end

#outcomeObject (readonly)

Returns the value of attribute outcome

Returns:

  • (Object)

    the current value of outcome



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def outcome
  @outcome
end

#step_fileObject (readonly)

Returns the value of attribute step_file

Returns:

  • (Object)

    the current value of step_file



21
22
23
# File 'lib/oselvar/var/core/execute.rb', line 21

def step_file
  @step_file
end