Class: Nmap::XML::RunStat
- Inherits:
-
Struct
- Object
- Struct
- Nmap::XML::RunStat
- Defined in:
- lib/nmap/xml/run_stat.rb
Overview
Represents the runstats of a scan.
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the stats to a String.
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed
10 11 12 |
# File 'lib/nmap/xml/run_stat.rb', line 10 def elapsed @elapsed end |
#end_time ⇒ Object
Returns the value of attribute end_time
10 11 12 |
# File 'lib/nmap/xml/run_stat.rb', line 10 def end_time @end_time end |
#exit_status ⇒ Object
Returns the value of attribute exit_status
10 11 12 |
# File 'lib/nmap/xml/run_stat.rb', line 10 def exit_status @exit_status end |
#summary ⇒ Object
Returns the value of attribute summary
10 11 12 |
# File 'lib/nmap/xml/run_stat.rb', line 10 def summary @summary end |
Instance Method Details
#to_s ⇒ String
Converts the stats to a String.
18 19 20 |
# File 'lib/nmap/xml/run_stat.rb', line 18 def to_s "#{self.end_time} #{self.elapsed} #{self.exit_status}" end |