| 1 | package GeoIP2::Role::HasIPAddress; | ||
| 2 | 6 | $GeoIP2::Role::HasIPAddress::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( IPAddress ); |
|
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 | has ip_address => ( | |
| 11 | is => 'ro', | ||
| 12 | isa => IPAddress, | ||
| 13 | required => 1, | ||
| 14 | ); | ||
| 15 | |||
| 16 | 6 | 1; | |