line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::AbuseIPDB::CheckResponse; |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
#=============================================================================== |
4
|
|
|
|
|
|
|
# FILE: CheckResponse.pm |
5
|
|
|
|
|
|
|
# DESCRIPTION: Response for check endpoint |
6
|
|
|
|
|
|
|
# AUTHOR: Pete Houston (pete), cpan@openstrike.co.uk |
7
|
|
|
|
|
|
|
# ORGANIZATION: Openstrike |
8
|
|
|
|
|
|
|
# CREATED: 12/08/19 14:51:10 |
9
|
|
|
|
|
|
|
#=============================================================================== |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
970
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
90
|
|
12
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
93
|
|
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
3
|
|
15
|
use parent 'WebService::AbuseIPDB::Response'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
20
|
|
15
|
|
|
|
|
|
|
our $VERSION = $WebService::AbuseIPDB::Response::VERSION; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
1
|
573
|
sub cc { return shift->{data}->{countryCode} } |
18
|
1
|
|
|
1
|
1
|
532
|
sub score { return shift->{data}->{abuseConfidenceScore} } |
19
|
1
|
|
|
1
|
1
|
511
|
sub report_count { return shift->{data}->{totalReports} } |
20
|
1
|
|
|
1
|
1
|
510
|
sub whitelisted { return shift->{data}->{isWhitelisted} } |
21
|
1
|
|
|
1
|
1
|
510
|
sub isp { return shift->{data}->{isp} } |
22
|
1
|
|
|
1
|
1
|
514
|
sub last_report_time { return shift->{data}->{lastReportedAt} } |
23
|
1
|
|
|
1
|
1
|
508
|
sub usage_type { return shift->{data}->{usageType} } |
24
|
1
|
|
|
1
|
1
|
508
|
sub ip { return shift->{data}->{ipAddress} } |
25
|
1
|
|
|
1
|
1
|
507
|
sub ipv { return shift->{data}->{ipVersion} } |
26
|
1
|
|
|
1
|
1
|
536
|
sub public { return shift->{data}->{isPublic} } |
27
|
1
|
|
|
1
|
1
|
6349
|
sub domain { return shift->{data}->{domain} } |
28
|
1
|
|
|
1
|
1
|
514
|
sub reporter_count { return shift->{data}->{numDistinctUsers} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |