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
|
5
|
|
|
5
|
|
1000
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
153
|
|
12
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
137
|
|
13
|
|
|
|
|
|
|
|
14
|
5
|
|
|
5
|
|
28
|
use parent 'WebService::AbuseIPDB::Response'; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
32
|
|
15
|
|
|
|
|
|
|
our $VERSION = $WebService::AbuseIPDB::Response::VERSION; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
1
|
548
|
sub cc { return shift->{data}->{countryCode} } |
18
|
1
|
|
|
1
|
1
|
519
|
sub score { return shift->{data}->{abuseConfidenceScore} } |
19
|
1
|
|
|
1
|
1
|
508
|
sub report_count { return shift->{data}->{totalReports} } |
20
|
1
|
|
|
1
|
1
|
526
|
sub whitelisted { return shift->{data}->{isWhitelisted} } |
21
|
1
|
|
|
1
|
1
|
529
|
sub isp { return shift->{data}->{isp} } |
22
|
1
|
|
|
1
|
1
|
502
|
sub last_report_time { return shift->{data}->{lastReportedAt} } |
23
|
1
|
|
|
1
|
1
|
502
|
sub usage_type { return shift->{data}->{usageType} } |
24
|
1
|
|
|
1
|
1
|
6002
|
sub ip { return shift->{data}->{ipAddress} } |
25
|
1
|
|
|
1
|
1
|
505
|
sub ipv { return shift->{data}->{ipVersion} } |
26
|
1
|
|
|
1
|
1
|
849
|
sub public { return shift->{data}->{isPublic} } |
27
|
1
|
|
|
1
|
1
|
561
|
sub domain { return shift->{data}->{domain} } |
28
|
1
|
|
|
1
|
1
|
509
|
sub reporter_count { return shift->{data}->{numDistinctUsers} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |