Class: Fix::Report Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fix/report.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The class that is responsible for reporting the result of the test.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test) ⇒ Report

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize the report class.

Parameters:

  • test (Test)

    The test.



10
11
12
# File 'lib/fix/report.rb', line 10

def initialize(test)
  @test = test
end

Instance Attribute Details

#testTest (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The result.

Returns:

  • (Test)

    The result.



17
18
19
# File 'lib/fix/report.rb', line 17

def test
  @test
end

Instance Method Details

#to_sString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The report in plain text.

Returns:

  • (String)

    The report in plain text.



22
23
24
25
26
27
# File 'lib/fix/report.rb', line 22

def to_s
  maybe_thematic_break +
    maybe_alerts_banner +
    total_time_banner +
    statistics_banner
end