Class: Qualys::Host
- Inherits:
-
Object
- Object
- Qualys::Host
- Defined in:
- lib/qualys/host.rb
Overview
a scanned target
Instance Attribute Summary collapse
-
#dns ⇒ Object
Returns the value of attribute dns.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#operating_system ⇒ Object
Returns the value of attribute operating_system.
-
#tracking_method ⇒ Object
Returns the value of attribute tracking_method.
-
#vuln_info_list ⇒ Object
Returns the value of attribute vuln_info_list.
-
#vulnerabilities ⇒ Object
Returns the value of attribute vulnerabilities.
Instance Method Summary collapse
-
#initialize(host, vulnerabilities = nil) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(host, vulnerabilities = nil) ⇒ Host
Returns a new instance of Host.
8 9 10 11 12 13 14 15 |
# File 'lib/qualys/host.rb', line 8 def initialize(host, vulnerabilities = nil) @ip = host['IP'] @tracking_method = host['TRACKING_METHOD'] @dns = host['DNS'] @operating_system = host['OPERATING_SYSTEM'] @vuln_info_list = host['VULN_INFO_LIST'] @vulnerabilities = vulnerabilities end |
Instance Attribute Details
#dns ⇒ Object
Returns the value of attribute dns.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def dns @dns end |
#ip ⇒ Object
Returns the value of attribute ip.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def ip @ip end |
#operating_system ⇒ Object
Returns the value of attribute operating_system.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def @operating_system end |
#tracking_method ⇒ Object
Returns the value of attribute tracking_method.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def tracking_method @tracking_method end |
#vuln_info_list ⇒ Object
Returns the value of attribute vuln_info_list.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def vuln_info_list @vuln_info_list end |
#vulnerabilities ⇒ Object
Returns the value of attribute vulnerabilities.
6 7 8 |
# File 'lib/qualys/host.rb', line 6 def vulnerabilities @vulnerabilities end |