| 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__ | ||