Class: Nmap::XML::RunStat

Inherits:
Struct
  • Object
show all
Defined in:
lib/nmap/xml/run_stat.rb

Overview

Represents the runstats of a scan.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#elapsedObject

Returns the value of attribute elapsed

Returns:

  • (Object)

    the current value of elapsed



10
11
12
# File 'lib/nmap/xml/run_stat.rb', line 10

def elapsed
  @elapsed
end

#end_timeObject

Returns the value of attribute end_time

Returns:

  • (Object)

    the current value of end_time



10
11
12
# File 'lib/nmap/xml/run_stat.rb', line 10

def end_time
  @end_time
end

#exit_statusObject

Returns the value of attribute exit_status

Returns:

  • (Object)

    the current value of exit_status



10
11
12
# File 'lib/nmap/xml/run_stat.rb', line 10

def exit_status
  @exit_status
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



10
11
12
# File 'lib/nmap/xml/run_stat.rb', line 10

def summary
  @summary
end

Instance Method Details

#to_sString

Converts the stats to a String.

Returns:

  • (String)

    The String form of the scan.

Since:

  • 1.0.0



18
19
20
# File 'lib/nmap/xml/run_stat.rb', line 18

def to_s
  "#{self.end_time} #{self.elapsed} #{self.exit_status}"
end