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
-
#initialize(scan) ⇒ Scan
constructor
A new instance of Scan.
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
#date ⇒ Object
Returns the value of attribute date.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def date @date end |
#duration ⇒ Object
Returns the value of attribute duration.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def duration @duration end |
#ref ⇒ Object
Returns the value of attribute ref.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def ref @ref end |
#status ⇒ Object
Returns the value of attribute status.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def status @status end |
#target ⇒ Object
Returns the value of attribute target.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def target @target end |
#title ⇒ Object
Returns the value of attribute title.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def type @type end |
#user ⇒ Object
Returns the value of attribute user.
23 24 25 |
# File 'lib/qualys/scans.rb', line 23 def user @user end |