Class: SSLyze::XML::Resum::SessionResumptionWithTLSTickets
- Inherits:
-
Object
- Object
- SSLyze::XML::Resum::SessionResumptionWithTLSTickets
- Includes:
- Attributes::Error, Attributes::IsSupported, Types
- Defined in:
- lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb
Overview
Represents the <sessionResumptionWithTLSTickets>
XML element.
Constant Summary
Constants included from Types
Instance Method Summary collapse
-
#error ⇒ String?
Returns the
error
attribute. -
#error? ⇒ Boolean
Determines if there was an error.
-
#initialize(node) ⇒ SessionResumptionWithTLSTickets
constructor
Initializes the SessionResumptionWithTLSTickets object.
-
#reason ⇒ String?
Returns the descriptive reason.
-
#to_s ⇒ String
Converts the element to a String.
Methods included from Attributes::IsSupported
Constructor Details
#initialize(node) ⇒ SessionResumptionWithTLSTickets
Initializes the SSLyze::XML::Resum::SessionResumptionWithTLSTickets object.
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
#error ⇒ String?
Returns the error
attribute.
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.
44 45 46 |
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 44 def error? !error.nil? end |
#reason ⇒ String?
Returns the descriptive reason.
53 54 55 |
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 53 def reason @reason ||= @node['reason'] end |
#to_s ⇒ String
Converts the element to a String.
62 63 64 |
# File 'lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb', line 62 def to_s reason || '' end |