GeoIP2/Record/City.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/Model/Insights.pm ↑ Summary GeoIP2/Record/Continent.pm »
1 package GeoIP2::Record::City;
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 PositiveInt 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 with 'GeoIP2::Role::Record::HasNames';
15  
16 12 has confidence => (
17 is => 'ro',
18 isa => NonNegativeInt,
19 predicate => 'has_confidence',
20 );
21  
22 12 has geoname_id => (
23 is => 'ro',
24 isa => PositiveInt,
25 predicate => 'has_geoname_id',
26 );
27  
28 12 1;
29  
30 # ABSTRACT: Contains data for the city record associated with an IP address
31  
32 __END__
« GeoIP2/Model/Insights.pm ↑ Summary GeoIP2/Record/Continent.pm »