Class: SSLyze::InvalidTarget
- Inherits:
-
Object
- Object
- SSLyze::InvalidTarget
- Defined in:
- lib/sslyze/invalid_target.rb
Overview
Represents the <invalidTarget>
XML element.
Instance Method Summary collapse
-
#error ⇒ String
The error from the scan.
-
#host ⇒ String
The host name of the target.
-
#initialize(node) ⇒ InvalidTarget
constructor
Initializes the invalid target.
Constructor Details
#initialize(node) ⇒ InvalidTarget
Initializes the invalid target.
13 14 15 |
# File 'lib/sslyze/invalid_target.rb', line 13 def initialize(node) @node = node end |
Instance Method Details
#error ⇒ String
The error from the scan.
31 32 33 |
# File 'lib/sslyze/invalid_target.rb', line 31 def error @ip ||= @node['error'] end |
#host ⇒ String
The host name of the target.
22 23 24 |
# File 'lib/sslyze/invalid_target.rb', line 22 def host @host ||= @node.text end |