line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::MinFraud::Record::Location; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
17
|
use Moo; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
15
|
|
4
|
3
|
|
|
3
|
|
750
|
use namespace::autoclean; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
23
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.010000'; |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
219
|
use WebService::MinFraud::Types qw( Str ); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
186
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
extends 'GeoIP2::Record::Location'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has local_time => ( |
13
|
|
|
|
|
|
|
is => 'ro', |
14
|
|
|
|
|
|
|
isa => Str, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# ABSTRACT: Contains data for the location record associated with an IP address |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
WebService::MinFraud::Record::Location - Contains data for the location record associated with an IP address |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
version 1.010000 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
use 5.010; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
use WebService::MinFraud::Client; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
my $client = WebService::MinFraud::Client->new( |
42
|
|
|
|
|
|
|
account_id => 42, |
43
|
|
|
|
|
|
|
license_key => 'abcdef123456', |
44
|
|
|
|
|
|
|
); |
45
|
|
|
|
|
|
|
my $request = { device => { ip_address => '24.24.24.24' } }; |
46
|
|
|
|
|
|
|
my $insights = $client->insights($request); |
47
|
|
|
|
|
|
|
my $location = $insights->location; |
48
|
|
|
|
|
|
|
say $location->local_time; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This class contains the location data associated with a transaction. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This record is returned by the Insights web service. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 METHODS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This class provides the same methods as L<GeoIP2::Record::Location> in addition |
59
|
|
|
|
|
|
|
to: |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 local_time |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Returns the time local to that of the IP address. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SUPPORT |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Mateu Hunter <mhunter@maxmind.com> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is copyright (c) 2015 - 2020 by MaxMind, Inc. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
78
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |