Class: Nmap::RunStat
- Inherits:
-
Struct
- Object
- Struct
- Nmap::RunStat
- Defined in:
- lib/nmap/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
7 8 9 |
# File 'lib/nmap/run_stat.rb', line 7 def elapsed @elapsed end |
#end_time ⇒ Object
Returns the value of attribute end_time
7 8 9 |
# File 'lib/nmap/run_stat.rb', line 7 def end_time @end_time end |
#exit_status ⇒ Object
Returns the value of attribute exit_status
7 8 9 |
# File 'lib/nmap/run_stat.rb', line 7 def exit_status @exit_status end |
#summary ⇒ Object
Returns the value of attribute summary
7 8 9 |
# File 'lib/nmap/run_stat.rb', line 7 def summary @summary end |
Instance Method Details
#to_s ⇒ String
Converts the stats to a String.
15 16 17 |
# File 'lib/nmap/run_stat.rb', line 15 def to_s "#{self.end_time} #{self.elapsed} #{self.exit_status}" end |