module SSLyze::XML::Attributes::Error

Provides methods for parsing the `error` XML attribute.

@since 1.0.0

Public Instance Methods

error() click to toggle source

The error message, if an error occurred.

@return [String, nil]

# File lib/sslyze/xml/attributes/error.rb, line 15
def error
  @error ||= @node['error']
end
error?() click to toggle source

Determines if an error occurred.

@return [Boolean]

# File lib/sslyze/xml/attributes/error.rb, line 24
def error?
  !error.nil?
end