Class: SSLyze::XML::Compression::CompressionMethod

Inherits:
Object
  • Object
show all
Includes:
Attributes::IsSupported
Defined in:
lib/sslyze/xml/compression/compression_method.rb

Overview

Represents the <compressionMethod> XML element.

Since:

  • 1.0.0

Constant Summary

Constants included from Types

Types::Boolean, Types::None

Instance Method Summary collapse

Methods included from Attributes::IsSupported

#is_supported?

Constructor Details

#initialize(node) ⇒ CompressionMethod

Parameters:

  • node (Nokogiri::XML::Element)

    The <compressionMethod> XML element.

Since:

  • 1.0.0



22
23
24
# File 'lib/sslyze/xml/compression/compression_method.rb', line 22

def initialize(node)
  @node = node
end

Instance Method Details

#typeSymbol

The type of compression.

Returns:

  • (Symbol)

Since:

  • 1.0.0



31
32
33
# File 'lib/sslyze/xml/compression/compression_method.rb', line 31

def type
  @type ||= @node['type'].to_sym
end