line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::AbuseIPDB::CheckBlockResponse; |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
#=============================================================================== |
4
|
|
|
|
|
|
|
# FILE: CheckBlockResponse.pm |
5
|
|
|
|
|
|
|
# DESCRIPTION: Response for check_block endpoint |
6
|
|
|
|
|
|
|
# AUTHOR: Pete Houston (pete), cpan@openstrike.co.uk |
7
|
|
|
|
|
|
|
# ORGANIZATION: Openstrike |
8
|
|
|
|
|
|
|
# CREATED: 04/07/20 15:23:03 |
9
|
|
|
|
|
|
|
#=============================================================================== |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
14
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
12
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent 'WebService::AbuseIPDB::Response'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
15
|
|
|
|
|
|
|
our $VERSION = $WebService::AbuseIPDB::Response::VERSION; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
518
|
use WebService::AbuseIPDB::ReportedAddress; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
244
|
|
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
1
|
5045
|
sub usage_type { return shift->{data}->{addressSpaceDesc} } |
20
|
1
|
|
|
1
|
1
|
514
|
sub network { return shift->{data}->{networkAddress} } |
21
|
1
|
|
|
1
|
1
|
515
|
sub netmask { return shift->{data}->{netmask} } |
22
|
1
|
|
|
1
|
1
|
530
|
sub min_addr { return shift->{data}->{minAddress} } |
23
|
1
|
|
|
1
|
1
|
535
|
sub max_addr { return shift->{data}->{maxAddress} } |
24
|
1
|
|
|
1
|
1
|
542
|
sub num_addr { return shift->{data}->{numPossibleHosts} } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub reports { |
27
|
2
|
|
|
2
|
1
|
859
|
my $self = shift; |
28
|
2
|
100
|
|
|
|
9
|
return @{$self->{reports}} if exists $self->{reports}; |
|
1
|
|
|
|
|
4
|
|
29
|
1
|
|
|
|
|
3
|
$self->{reports} = []; |
30
|
2
|
|
|
|
|
10
|
push @{$self->{reports}}, WebService::AbuseIPDB::ReportedAddress->new ($_) |
31
|
1
|
|
|
|
|
2
|
for @{$self->{data}->{reportedAddress}}; |
|
1
|
|
|
|
|
3
|
|
32
|
1
|
|
|
|
|
2
|
return @{$self->{reports}}; |
|
1
|
|
|
|
|
4
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |