| 1 | |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use Class::Generate qw(class); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 3 | class 'Nmap::Scanner::RunStats' => { | |
| 6 | qw(finished Nmap::Scanner::RunStats::Finished | ||
| 7 | hosts Nmap::Scanner::Hosts), | ||
| 8 | '&as_xml' => q! | ||
| 9 | |||
| 10 | my $xml = "<runstats>"; | ||
| 11 | $xml .= $self->{'finished'}->as_xml() if $self->{'finished'}; | ||
| 12 | $xml .= $self->{'hosts'}->as_xml() if $self->{'hosts'}; | ||
| 13 | $xml .= "</runstats>\n"; | ||
| 14 | |||
| 15 | return $xml; | ||
| 16 | |||
| 17 | ! | ||
| 18 | }; | ||
| 19 | |||
| 20 | 3 | 1; | |
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents Nmap Summary/scan information. | ||
| 27 | |||
| 28 | =head1 PROPERTIES | ||
| 29 | |||
| 30 | =head2 finished() - Nmap::Scanner::RunStats::Finished | ||
| 31 | |||
| 32 | =head2 hosts() | ||
| 33 | |||
| 34 | =cut | ||