Class: Lemans::Runner::Summary

Inherits:
Struct
  • Object
show all
Defined in:
lib/lemans/runner.rb

Overview

rubocop:disable Lint/InheritException

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#interruptedObject

Returns the value of attribute interrupted

Returns:

  • (Object)

    the current value of interrupted



12
13
14
# File 'lib/lemans/runner.rb', line 12

def interrupted
  @interrupted
end

#resultsObject

Returns the value of attribute results

Returns:

  • (Object)

    the current value of results



12
13
14
# File 'lib/lemans/runner.rb', line 12

def results
  @results
end

Instance Method Details

#statusObject



13
14
15
16
17
18
# File 'lib/lemans/runner.rb', line 13

def status
  return :interrupted if interrupted
  return :invalid if results.any?(&:invalid?)

  :ok
end