class Nikto::XML::Item
Public Class Methods
new(node)
click to toggle source
Initializes the item object.
@param [Nokogiri::XML::Node] node
The XML node for the `item` XML element.
@api private
# File lib/nikto/xml/item.rb, line 13 def initialize(node) @node = node end
Public Instance Methods
description()
click to toggle source
The text of the ‘description` child element.
@return [String]
# File lib/nikto/xml/item.rb, line 22 def description @description ||= @node.at_xpath('description').inner_text end
ip_link()
click to toggle source
The text of the ‘iplink` child element.
@return [String]
# File lib/nikto/xml/item.rb, line 49 def ip_link @ip_link ||= @node.at_xpath('iplink').inner_text end
name_link()
click to toggle source
The text of the ‘namelink` child element.
@return [String]
# File lib/nikto/xml/item.rb, line 40 def name_link @name_link ||= @node.at_xpath('namelink').inner_text end
uri()
click to toggle source
The text of the ‘uri` child element.
@return [String]
# File lib/nikto/xml/item.rb, line 31 def uri @uri ||= @node.at_xpath('uri').inner_text end