| 1 | package GeoIP2::Model::ASN; | ||
| 2 | |||
| 3 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 7 | our $VERSION = '2.006002'; | |
| 7 | |||
| 8 | 7 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 7 | ▶ | use GeoIP2::Types qw( IPAddress NonNegativeInt Str ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 7 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 7 | with 'GeoIP2::Role::Model::Flat', 'GeoIP2::Role::HasIPAddress'; | |
| 15 | |||
| 16 | 7 | has autonomous_system_number => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => NonNegativeInt, | ||
| 19 | predicate => 'has_autonomous_system_number', | ||
| 20 | ); | ||
| 21 | |||
| 22 | 7 | has autonomous_system_organization => ( | |
| 23 | is => 'ro', | ||
| 24 | isa => Str, | ||
| 25 | predicate => 'has_autonomous_system_organization', | ||
| 26 | ); | ||
| 27 | |||
| 28 | 7 | 1; | |
| 29 | |||
| 30 | # ABSTRACT: Model class for the GeoLite2 ASN database | ||
| 31 | |||
| 32 | __END__ | ||