Class: SSLyze::InvalidTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/sslyze/invalid_target.rb

Overview

Represents the <invalidTarget> XML element.

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ InvalidTarget

Initializes the invalid target.

Parameters:

  • node (Nokogiri::XML::Node)

    The <invalid> XML element.



13
14
15
# File 'lib/sslyze/invalid_target.rb', line 13

def initialize(node)
  @node = node
end

Instance Method Details

#errorString

The error from the scan.

Returns:

  • (String)


31
32
33
# File 'lib/sslyze/invalid_target.rb', line 31

def error
  @ip ||= @node['error']
end

#hostString

The host name of the target.

Returns:

  • (String)


22
23
24
# File 'lib/sslyze/invalid_target.rb', line 22

def host
  @host ||= @node.text
end