Class: Ronin::Exploits::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/ronin/exploits/test_result.rb

Overview

Base class for all test results.

Since:

  • 1.0.0

Direct Known Subclasses

NotVulnerable, Unknown, Vulnerable

Defined Under Namespace

Classes: NotVulnerable, Unknown, Vulnerable

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ TestResult

Initializes the test result.

Parameters:

  • message (String)

    The descriptive message for the result.

Since:

  • 1.0.0



46
47
48
# File 'lib/ronin/exploits/test_result.rb', line 46

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

The descriptive message of the test result.

Since:

  • 1.0.0



36
37
38
# File 'lib/ronin/exploits/test_result.rb', line 36

def message
  @message
end

Instance Method Details

#to_sString

Converts the test result to a String.

Returns:

  • (String)

    The test result message.

Since:

  • 1.0.0



58
59
60
# File 'lib/ronin/exploits/test_result.rb', line 58

def to_s
  @message
end