Class: Nikto::XML::Statistics
- Inherits:
-
Object
- Object
- Nikto::XML::Statistics
- Defined in:
- lib/nikto/xml/statistics.rb
Overview
Represents a statistics
XML element.
Instance Method Summary collapse
-
#elapsed ⇒ Intger
The number of seconds elapsed.
-
#end_time ⇒ Time
The end-time of the scan.
-
#initialize(node) ⇒ Statistics
constructor
private
Initializes the statistics object.
-
#items_found ⇒ Intger
The number of items found.
-
#items_tested ⇒ Intger
The number of items tested.
Constructor Details
#initialize(node) ⇒ Statistics
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the statistics object.
18 19 20 |
# File 'lib/nikto/xml/statistics.rb', line 18 def initialize(node) @node = node end |
Instance Method Details
#elapsed ⇒ Intger
The number of seconds elapsed.
28 29 30 |
# File 'lib/nikto/xml/statistics.rb', line 28 def elapsed @elapsed ||= @node['elapsed'].to_i end |
#end_time ⇒ Time
The end-time of the scan.
58 59 60 |
# File 'lib/nikto/xml/statistics.rb', line 58 def end_time @end_time ||= Time.parse(@node['endtime']) end |
#items_found ⇒ Intger
The number of items found.
38 39 40 |
# File 'lib/nikto/xml/statistics.rb', line 38 def items_found @items_found ||= @node['itemsfound'].to_i end |
#items_tested ⇒ Intger
The number of items tested.
48 49 50 |
# File 'lib/nikto/xml/statistics.rb', line 48 def items_tested @items_tested ||= @node['itemstested'].to_i end |