GeoIP2/Model/ISP.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Model/Enterprise.pm ↑ Summary GeoIP2/Model/Insights.pm »
1 package GeoIP2::Model::ISP;
2  
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 7 our $VERSION = '2.006002';
7  
8 7 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 ▶use GeoIP2::Types qw( IPAddress NonNegativeInt Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 7 with 'GeoIP2::Role::Model::Flat', 'GeoIP2::Role::HasIPAddress';
15  
16 7 has autonomous_system_number => (
17 is => 'ro',
18 isa => NonNegativeInt,
19 predicate => 'has_autonomous_system_number',
20 );
21  
22 7 has autonomous_system_organization => (
23 is => 'ro',
24 isa => Str,
25 predicate => 'has_autonomous_system_organization',
26 );
27  
28 7 has isp => (
29 is => 'ro',
30 isa => Str,
31 predicate => 'has_isp',
32 );
33  
34 7 has organization => (
35 is => 'ro',
36 isa => Str,
37 predicate => 'has_organization',
38 );
39  
40 7 1;
41  
42 # ABSTRACT: Model class for the GeoIP2 ISP database
43  
44 __END__
« GeoIP2/Model/Enterprise.pm ↑ Summary GeoIP2/Model/Insights.pm »