| 1 | package GeoIP2::Model::Country; | ||
| 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( HashRef object_isa_type ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 10 | ▶ | use Sub::Quote qw( quote_sub ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 10 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 10 | with 'GeoIP2::Role::Model::Location'; | |
| 16 | |||
| 17 | ## no critic (ProhibitUnusedPrivateSubroutines) | ||
| 18 | 100 | ▶ | sub _has { has(@_) } |
|
Subroutine
_has: called CC=1 SCAR=0.0
| |||
| 19 | ## use critic | ||
| 20 | |||
| 21 | 10 | __PACKAGE__->_define_attributes_for_keys( | |
| 22 | qw( continent country maxmind registered_country traits )); | ||
| 23 | |||
| 24 | 10 | 1; | |
| 25 | |||
| 26 | # ABSTRACT: Model class for the GeoIP2 Precision: Country and GeoIP2 Country | ||
| 27 | |||
| 28 | __END__ | ||