GeoIP2/Record/Postal.pm

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