| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Geo::Location::IP::Model::Domain; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later |
|
4
|
|
|
|
|
|
|
|
|
5
|
10
|
|
|
10
|
|
144
|
use 5.026; |
|
|
10
|
|
|
|
|
30
|
|
|
6
|
10
|
|
|
10
|
|
47
|
use warnings; |
|
|
10
|
|
|
|
|
18
|
|
|
|
10
|
|
|
|
|
437
|
|
|
7
|
10
|
|
|
10
|
|
45
|
use utf8; |
|
|
10
|
|
|
|
|
17
|
|
|
|
10
|
|
|
|
|
48
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
10
|
|
|
10
|
|
249
|
use Object::Pad; |
|
|
10
|
|
|
|
|
18
|
|
|
|
10
|
|
|
|
|
51
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
class Geo::Location::IP::Model::Domain; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = 0.005; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
apply Geo::Location::IP::Role::HasIPAddress; |
|
16
|
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
1
|
8
|
field $domain :param :reader; |
|
|
1
|
|
|
|
|
27
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
4
|
sub _from_hash ($class, $hash_ref, $ip_address) { |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
3
|
|
|
20
|
1
|
|
50
|
|
|
7
|
my $domain = $hash_ref->{domain} // undef; |
|
21
|
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
14
|
return $class->new( |
|
23
|
|
|
|
|
|
|
domain => $domain, |
|
24
|
|
|
|
|
|
|
ip_address => $ip_address, |
|
25
|
|
|
|
|
|
|
); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
__END__ |