Class: SSLyze::XML::Resum::SessionResumptionWithTLSTickets

Inherits:
Object
  • Object
show all
Includes:
Attributes::Error, Attributes::IsSupported, Types
Defined in:
lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb

Overview

Represents the <sessionResumptionWithTLSTickets> 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) ⇒ SessionResumptionWithTLSTickets

Parameters:

  • node (Nokogiri::XML::Element)

    The <sessionResumptionWithTLSTickets> XML element.

Since:

  • 1.0.0



26
27
28
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 26

def initialize(node)
  @node = node
end

Instance Method Details

#errorString?

Returns the error attribute.

Returns:

  • (String, nil)

Since:

  • 1.0.0



35
36
37
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 35

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

#error?Boolean

Determines if there was an error.

Returns:

Since:

  • 1.0.0



44
45
46
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 44

def error?
  !error.nil?
end

#reasonString?

Returns the descriptive reason.

Returns:

  • (String, nil)

Since:

  • 1.0.0



53
54
55
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 53

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

#to_sString

Converts the element to a String.

Returns:

  • (String)

Since:

  • 1.0.0



62
63
64
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 62

def to_s
  reason || ''
end