class Nikto::XML::Statistics

Represents a ‘statistics` XML element.

Public Class Methods

new(node) click to toggle source

Initializes the statistics object.

@param [Nokogiri::XML::Node] node

The XML node for the `statistics` XML element.

@api private

# File lib/nikto/xml/statistics.rb, line 18
def initialize(node)
  @node = node
end

Public Instance Methods

elapsed() click to toggle source

The number of seconds elapsed.

@return [Intger]

The parsed value of the `elapsed` attribute.
# File lib/nikto/xml/statistics.rb, line 28
def elapsed
  @elapsed ||= @node['elapsed'].to_i
end
end_time() click to toggle source

The end-time of the scan.

@return [Time]

The parsed value of the `endtime` attribute.
# File lib/nikto/xml/statistics.rb, line 58
def end_time
  @end_time ||= Time.parse(@node['endtime'])
end
items_found() click to toggle source

The number of items found.

@return [Intger]

The parsed value of the `itemsfound` attribute.
# File lib/nikto/xml/statistics.rb, line 38
def items_found
  @items_found ||= @node['itemsfound'].to_i
end
items_tested() click to toggle source

The number of items tested.

@return [Intger]

The parsed value of the `itemstested` attribute.
# File lib/nikto/xml/statistics.rb, line 48
def items_tested
  @items_tested ||= @node['itemstested'].to_i
end