Class: Varar::Core::StepObservation

Inherits:
Data
  • Object
show all
Defined in:
lib/varar/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.



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

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



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def error
  @error
end

#example_indexObject (readonly)

Returns the value of attribute example_index

Returns:

  • (Object)

    the current value of example_index



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def example_index
  @example_index
end

#example_nameObject (readonly)

Returns the value of attribute example_name

Returns:

  • (Object)

    the current value of example_name



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def example_name
  @example_name
end

#ordinalObject (readonly)

Returns the value of attribute ordinal

Returns:

  • (Object)

    the current value of ordinal



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def ordinal
  @ordinal
end

#outcomeObject (readonly)

Returns the value of attribute outcome

Returns:

  • (Object)

    the current value of outcome



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def outcome
  @outcome
end

#step_fileObject (readonly)

Returns the value of attribute step_file

Returns:

  • (Object)

    the current value of step_file



20
21
22
# File 'lib/varar/core/execute.rb', line 20

def step_file
  @step_file
end