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.



12
13
14
# File 'lib/fix/report.rb', line 12

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 results of the test.

Returns:

  • (Test)

    The results of the test.



19
20
21
# File 'lib/fix/report.rb', line 19

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.



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

def to_s
  [maybe_thematic_break, maybe_alerts, total_time, statistics].join
end