Class: Qualys::Host

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

Overview

a scanned target

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dnsObject

Returns the value of attribute dns.



6
7
8
# File 'lib/qualys/host.rb', line 6

def dns
  @dns
end

#ipObject

Returns the value of attribute ip.



6
7
8
# File 'lib/qualys/host.rb', line 6

def ip
  @ip
end

#operating_systemObject

Returns the value of attribute operating_system.



6
7
8
# File 'lib/qualys/host.rb', line 6

def operating_system
  @operating_system
end

#tracking_methodObject

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_listObject

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

#vulnerabilitiesObject

Returns the value of attribute vulnerabilities.



6
7
8
# File 'lib/qualys/host.rb', line 6

def vulnerabilities
  @vulnerabilities
end