class Nexpose::ScanSummary::Tasks
Value class to tracking task counts.
Attributes
active[R]
completed[R]
pending[R]
Public Class Methods
new(pending, active, completed)
click to toggle source
# File lib/nexpose/scan.rb, line 610 def initialize(pending, active, completed) @pending = pending @active = active @completed = completed end
parse(rexml)
click to toggle source
Parse REXML to Tasks
object.
@param [REXML::Document] rexml XML
document to parse. @return [Tasks] Task summary represented by the XML
.
# File lib/nexpose/scan.rb, line 621 def self.parse(rexml) return nil unless rexml Tasks.new(rexml.attributes['pending'].to_i, rexml.attributes['active'].to_i, rexml.attributes['completed'].to_i) end