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
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