| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Geo::Location::IP::Model::ConnectionType; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later |
|
4
|
|
|
|
|
|
|
|
|
5
|
12
|
|
|
12
|
|
1509
|
use 5.026; |
|
|
12
|
|
|
|
|
86
|
|
|
6
|
12
|
|
|
12
|
|
87
|
use warnings; |
|
|
12
|
|
|
|
|
21
|
|
|
|
12
|
|
|
|
|
590
|
|
|
7
|
12
|
|
|
12
|
|
130
|
use utf8; |
|
|
12
|
|
|
|
|
21
|
|
|
|
12
|
|
|
|
|
71
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
12
|
|
|
12
|
|
307
|
use Object::Pad; |
|
|
12
|
|
|
|
|
18
|
|
|
|
12
|
|
|
|
|
73
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
class Geo::Location::IP::Model::ConnectionType; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = 0.005; |
|
14
|
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
|
1984
|
apply Geo::Location::IP::Role::HasIPAddress; |
|
|
2
|
|
|
|
|
32
|
|
|
|
2
|
|
|
|
|
508
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
3
|
|
|
3
|
1
|
2656
|
field $connection_type :param :reader; |
|
|
3
|
|
|
|
|
20
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
3
|
sub _from_hash ($class, $hash_ref, $ip_address) { |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
3
|
|
|
20
|
1
|
|
50
|
|
|
5
|
my $connection_type = $hash_ref->{connection_type} // undef; |
|
21
|
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
13
|
return $class->new( |
|
23
|
|
|
|
|
|
|
connection_type => $connection_type, |
|
24
|
|
|
|
|
|
|
ip_address => $ip_address, |
|
25
|
|
|
|
|
|
|
); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
__END__ |