| 1 | package GeoIP2::Role::Record::Country; | ||
| 2 | 6 | $GeoIP2::Role::Record::Country::VERSION = '0.050000'; | |
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | ▶ | use GeoIP2::Types qw( NonNegativeInt PositiveInt Str ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 6 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 6 | with 'GeoIP2::Role::Record::HasNames'; | |
| 11 | |||
| 12 | 6 | has iso_code => ( | |
| 13 | is => 'ro', | ||
| 14 | isa => Str, | ||
| 15 | predicate => 'has_iso_code', | ||
| 16 | ); | ||
| 17 | |||
| 18 | 6 | has geoname_id => ( | |
| 19 | is => 'ro', | ||
| 20 | isa => PositiveInt, | ||
| 21 | predicate => 'has_geoname_id', | ||
| 22 | ); | ||
| 23 | |||
| 24 | 6 | has confidence => ( | |
| 25 | is => 'ro', | ||
| 26 | isa => NonNegativeInt, | ||
| 27 | predicate => 'has_confidence', | ||
| 28 | ); | ||
| 29 | |||
| 30 | 6 | 1; | |