class SSLyze::XML::Resum::SessionResumptionWithSessionIDs
Represents the `<sessionResumptionWithSessionIDs>` XML
element.
@since 1.0.0
Public Class Methods
new(node)
click to toggle source
Initializes the {SessionResumptionWithSessionIDs} object.
@param [Nokogiri::XML::Element] node
The `<sessionResumptionWithSessionIDs>` XML element.
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 24 def initialize(node) @node = node end
Public Instance Methods
each_error() { |inner_text| ... }
click to toggle source
Enumerates over each error message.
@yield [error]
@yieldparam [String] error
@return [Enumerator]
An enumerator will be returned if no block was given.
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 74 def each_error return enum_for(__method__) unless block_given? @node.xpath('error').each do |error| yield error.inner_text end end
error_count()
click to toggle source
The number of errors that occurred.
@return [Integer]
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 60 def error_count @error_count ||= @node['errors'].to_i end
errors()
click to toggle source
All error messages.
@return [Array<String>]
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 87 def errors each_error.to_a end
failed_attempts()
click to toggle source
Number of failed attempts.
@return [Integer]
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 33 def failed_attempts @failed_attempts ||= @node['failedAttempts'].to_i end
successful_attempts()
click to toggle source
Number of successful attempts.
@return [Integer]
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 42 def successful_attempts @successful_attempts ||= @node['successfulAttempts'].to_i end
total_attempts()
click to toggle source
Number of total attempts.
@return [Integer]
# File lib/sslyze/xml/resum/session_resumption_with_session_ids.rb, line 51 def total_attempts @total_attempts ||= @node['totalAttempts'].to_i end