Method: Nmap::XML#down_hosts

Defined in:
lib/nmap/xml.rb

#down_hostsArray<Host>

Parses the hosts found to be down during the scan.

Returns:

  • (Array<Host>)

    The down hosts in the scan.

Since:

  • 0.8.0



365
366
367
# File 'lib/nmap/xml.rb', line 365

def down_hosts
  each_down_host.to_a
end