Class: SSLyze::XML::Compression

Inherits:
Plugin
  • Object
show all
Defined in:
lib/sslyze/xml/compression.rb,
lib/sslyze/xml/compression/compression_method.rb

Overview

Represents the <compression> XML element.

Since:

  • 1.0.0

Defined Under Namespace

Classes: CompressionMethod

Instance Method Summary collapse

Methods inherited from Plugin

#initialize

Methods included from Attributes::Exception

#exception, #exception?

Methods included from Attributes::Title

#title, #to_s

Constructor Details

This class inherits a constructor from SSLyze::XML::Plugin

Instance Method Details

#deflateCompressionMethod

Parses the <compressionMethod> XML element.

Returns:

Since:

  • 1.0.0



18
19
20
21
22
# File 'lib/sslyze/xml/compression.rb', line 18

def deflate
  @compression_method ||= CompressionMethod.new(
    @node.at_xpath('compressionMethod[@type="DEFLATE"]')
  )
end

#deflate?Boolean

Returns:

See Also:

Since:

  • 1.0.0



27
28
29
# File 'lib/sslyze/xml/compression.rb', line 27

def deflate?
  deflate.is_supported?
end