Class: Qualys::Scan
- Inherits:
-
Object
- Object
- Qualys::Scan
- Defined in:
- lib/qualys/scans.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#status ⇒ Object
Returns the value of attribute status.
-
#target ⇒ Object
Returns the value of attribute target.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #details ⇒ Object
- #finished? ⇒ Boolean
-
#initialize(scan) ⇒ Scan
constructor
A new instance of Scan.
Constructor Details
#initialize(scan) ⇒ Scan
Returns a new instance of Scan.
28 29 30 31 32 33 34 35 36 37 |
# 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 |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def date @date end |
#duration ⇒ Object
Returns the value of attribute duration.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def duration @duration end |
#ref ⇒ Object
Returns the value of attribute ref.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def ref @ref end |
#status ⇒ Object
Returns the value of attribute status.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def status @status end |
#target ⇒ Object
Returns the value of attribute target.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def target @target end |
#title ⇒ Object
Returns the value of attribute title.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def type @type end |
#user ⇒ Object
Returns the value of attribute user.
26 27 28 |
# File 'lib/qualys/scans.rb', line 26 def user @user end |