GeoIP2/Model/ASN.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Error/WebService.pm ↑ Summary GeoIP2/Model/AnonymousIP.pm »
1 package GeoIP2::Model::ASN;
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 1;
29  
30 # ABSTRACT: Model class for the GeoLite2 ASN database
31  
32 __END__
« GeoIP2/Error/WebService.pm ↑ Summary GeoIP2/Model/AnonymousIP.pm »