GeoIP2/Record/Subdivision.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GeoIP2/Record/RepresentedCountry.pm ↑ Summary GeoIP2/Record/Traits.pm »
1 package GeoIP2::Record::Subdivision;
2  
3 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 our $VERSION = '2.006002';
7  
8 10 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 10 ▶use GeoIP2::Types qw( NonNegativeInt PositiveInt Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 10 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 10 with 'GeoIP2::Role::Record::HasNames';
15  
16 10 has confidence => (
17 is => 'ro',
18 isa => NonNegativeInt,
19 predicate => 'has_confidence',
20 );
21  
22 10 has geoname_id => (
23 is => 'ro',
24 isa => PositiveInt,
25 predicate => 'has_geoname_id',
26 );
27  
28 10 has iso_code => (
29 is => 'ro',
30 isa => Str,
31 predicate => 'has_iso_code',
32 );
33  
34 10 1;
35  
36 # ABSTRACT: Contains data for the subdivision record associated with an IP address
37  
38 __END__
« GeoIP2/Record/RepresentedCountry.pm ↑ Summary GeoIP2/Record/Traits.pm »