Class: Kohagi::Summary

Inherits:
Struct
  • Object
show all
Defined in:
lib/kohagi/summary.rb

Overview

The run's outcome: kohagi's reported counts (see SummaryLine) combined by the client with what actually streamed back. A plain data holder — parsing and composition live in SummaryLine and Client, not here.

truncated is nil against a kohagi old enough not to report it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dimObject

Returns the value of attribute dim

Returns:

  • (Object)

    the current value of dim



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def dim
  @dim
end

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def exit_code
  @exit_code
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def model
  @model
end

#outObject

Returns the value of attribute out

Returns:

  • (Object)

    the current value of out



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def out
  @out
end

#resultsObject

Returns the value of attribute results

Returns:

  • (Object)

    the current value of results



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def results
  @results
end

#sentObject

Returns the value of attribute sent

Returns:

  • (Object)

    the current value of sent



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def sent
  @sent
end

#skippedObject

Returns the value of attribute skipped

Returns:

  • (Object)

    the current value of skipped



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def skipped
  @skipped
end

#truncatedObject

Returns the value of attribute truncated

Returns:

  • (Object)

    the current value of truncated



9
10
11
# File 'lib/kohagi/summary.rb', line 9

def truncated
  @truncated
end

Instance Method Details

#ok?Boolean

Every record embedded.

Returns:

  • (Boolean)


14
15
16
# File 'lib/kohagi/summary.rb', line 14

def ok?
  exit_code == ExitCode::OK
end

#partial?Boolean

Finished, but some input lines were skipped. The received output is still valid; investigate stderr and resend the skipped records.

Returns:

  • (Boolean)


20
21
22
# File 'lib/kohagi/summary.rb', line 20

def partial?
  exit_code == ExitCode::PARTIAL
end