Class: Qualys::Scan

Inherits:
Object
  • Object
show all
Defined in:
lib/qualys/scans.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scan) ⇒ Scan

Returns a new instance of Scan.



25
26
27
28
29
30
31
32
33
34
# File 'lib/qualys/scans.rb', line 25

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

Instance Attribute Details

#dateObject

Returns the value of attribute date.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def date
  @date
end

#durationObject

Returns the value of attribute duration.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def duration
  @duration
end

#refObject

Returns the value of attribute ref.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def ref
  @ref
end

#statusObject

Returns the value of attribute status.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def status
  @status
end

#targetObject

Returns the value of attribute target.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def target
  @target
end

#titleObject

Returns the value of attribute title.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def title
  @title
end

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def type
  @type
end

#userObject

Returns the value of attribute user.



23
24
25
# File 'lib/qualys/scans.rb', line 23

def user
  @user
end