Class: SSLyze::Certificate::Extensions::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/sslyze/certificate/extensions/extension.rb

Overview

Represents a SSL extension XML element.

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Extension

Initializes the extension.

Parameters:

  • node (Nokogiri::XML::Node)

    The extension node.



15
16
17
# File 'lib/sslyze/certificate/extensions/extension.rb', line 15

def initialize(node)
  @node = node
end

Instance Method Details

#present?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/sslyze/certificate/extensions/extension.rb', line 19

def present?
  !@node.nil?
end