Module: SSLyze::XML::Attributes::Error

Included in:
Certinfo::CertificateValidation::PathValidation, InvalidTarget, Resum::SessionResumptionWithTLSTickets
Defined in:
lib/sslyze/xml/attributes/error.rb

Overview

Provides methods for parsing the error XML attribute.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#errorString?

The error message, if an error occurred.

Returns:

  • (String, nil)

Since:

  • 1.0.0



15
16
17
# File 'lib/sslyze/xml/attributes/error.rb', line 15

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

#error?Boolean

Determines if an error occurred.

Returns:

Since:

  • 1.0.0



24
25
26
# File 'lib/sslyze/xml/attributes/error.rb', line 24

def error?
  !error.nil?
end