class SSLyze::XML::Resum::SessionResumptionWithTLSTickets
Represents the `<sessionResumptionWithTLSTickets>` XML
element.
@since 1.0.0
Public Class Methods
new(node)
click to toggle source
Initializes the {SessionResumptionWithTLSTickets} object.
@param [Nokogiri::XML::Element] node
The `<sessionResumptionWithTLSTickets>` XML element.
# File lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb, line 26 def initialize(node) @node = node end
Public Instance Methods
error()
click to toggle source
Returns the `error` attribute.
@return [String, nil]
# File lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb, line 35 def error @error ||= @node['error'] end
error?()
click to toggle source
Determines if there was an error.
@return [Boolean]
# File lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb, line 44 def error? !error.nil? end
reason()
click to toggle source
Returns the descriptive reason.
@return [String, nil]
# File lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb, line 53 def reason @reason ||= @node['reason'] end
to_s()
click to toggle source
Converts the element to a String.
@return [String]
# File lib/sslyze/xml/resum/session_resumption_with_tls_tickets.rb, line 62 def to_s reason || '' end