class Qualys::Scan
Attributes
date[RW]
duration[RW]
ref[RW]
status[RW]
target[RW]
title[RW]
type[RW]
user[RW]
Public Class Methods
new(scan)
click to toggle source
# File lib/qualys/scans.rb, line 28 def initialize(scan) @ref = scan['REF'] @title = scan['TITLE'] @type = scan['TYPE'] @date = scan['LAUNCH_DATETIME'] @duration = scan['DURATION'] @status = scan['STATUS']['STATE'] @target = scan['TARGET'] @user = scan['USER_LOGIN'] end
Public Instance Methods
details()
click to toggle source
# File lib/qualys/scans.rb, line 39 def details Scans.get(@ref) end
finished?()
click to toggle source
# File lib/qualys/scans.rb, line 43 def finished? return true if @status.eql? 'Finished' false end