| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Geo::Location::IP::Record::RepresentedCountry; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later |
|
4
|
|
|
|
|
|
|
|
|
5
|
13
|
|
|
13
|
|
202
|
use 5.026; |
|
|
13
|
|
|
|
|
47
|
|
|
6
|
13
|
|
|
13
|
|
63
|
use warnings; |
|
|
13
|
|
|
|
|
20
|
|
|
|
13
|
|
|
|
|
578
|
|
|
7
|
13
|
|
|
13
|
|
59
|
use utf8; |
|
|
13
|
|
|
|
|
17
|
|
|
|
13
|
|
|
|
|
61
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
13
|
|
|
13
|
|
391
|
use Object::Pad; |
|
|
13
|
|
|
|
|
29
|
|
|
|
13
|
|
|
|
|
74
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
class Geo::Location::IP::Record::RepresentedCountry |
|
12
|
|
|
|
|
|
|
:isa(Geo::Location::IP::Record::Country); |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = 0.005; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
field $type :param :reader = undef; |
|
17
|
|
|
|
|
|
|
|
|
18
|
9
|
|
|
9
|
1
|
45
|
sub _from_hash ($class, $hash_ref, $locales) { |
|
|
9
|
|
|
4
|
|
45
|
|
|
|
9
|
|
|
|
|
24
|
|
|
|
9
|
|
|
|
|
36
|
|
|
|
9
|
|
|
|
|
37
|
|
|
|
4
|
|
|
|
|
23
|
|
|
|
4
|
|
|
|
|
19
|
|
|
19
|
|
|
|
|
|
|
return $class->new( |
|
20
|
|
|
|
|
|
|
names => $hash_ref->{names} // {}, |
|
21
|
|
|
|
|
|
|
confidence => $hash_ref->{confidence} // undef, |
|
22
|
|
|
|
|
|
|
geoname_id => $hash_ref->{geoname_id} // undef, |
|
23
|
|
|
|
|
|
|
is_in_european_union => $hash_ref->{is_in_european_union} // 0, |
|
24
|
|
|
|
|
|
|
iso_code => $hash_ref->{iso_code} // undef, |
|
25
|
|
|
|
|
|
|
type => $hash_ref->{type} // undef, |
|
26
|
9
|
|
50
|
|
|
312
|
locales => $locales, |
|
|
|
|
100
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
27
|
|
|
|
|
|
|
); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
use overload |
|
31
|
13
|
|
|
13
|
|
8784
|
q{""} => \&stringify; |
|
|
13
|
|
|
|
|
24
|
|
|
|
13
|
|
|
|
|
89
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub stringify { |
|
34
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
35
|
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return $self->name; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
__END__ |