class Nexpose::Scan

Struct class for tracking scan launch information.

Attributes

engine[R]

The engine the scan was dispatched to.

id[R]

The scan ID when a scan is successfully launched.

Public Class Methods

new(scan_id, engine_id) click to toggle source
# File lib/nexpose/scan.rb, line 738
def initialize(scan_id, engine_id)
  @id     = scan_id
  @engine = engine_id
end
parse(xml) click to toggle source
# File lib/nexpose/scan.rb, line 743
def self.parse(xml)
  xml.elements.each('//Scan') do |scan|
    return new(scan.attributes['scan-id'].to_i,
               scan.attributes['engine-id'].to_i)
  end
end