| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::MinFraud::Record::ScoreIPAddress; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 3 |  |  | 3 |  | 81308 | use Moo; | 
|  | 3 |  |  |  |  | 9214 |  | 
|  | 3 |  |  |  |  | 18 |  | 
| 4 | 3 |  |  | 3 |  | 2023 | use namespace::autoclean; | 
|  | 3 |  |  |  |  | 10979 |  | 
|  | 3 |  |  |  |  | 14 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | our $VERSION = '1.010000'; | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | with 'WebService::MinFraud::Role::Record::HasRisk'; | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | 1; | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | # ABSTRACT: Contains data for the IP address's risk | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | __END__ | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | =pod | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | =encoding UTF-8 | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | =head1 NAME | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | WebService::MinFraud::Record::ScoreIPAddress - Contains data for the IP address's risk | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | =head1 VERSION | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | version 1.010000 | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | use 5.010; | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | use WebService::MinFraud::Client; | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | my $client = WebService::MinFraud::Client->new( | 
| 35 |  |  |  |  |  |  | account_id  => 42, | 
| 36 |  |  |  |  |  |  | license_key => 'abcdef123456', | 
| 37 |  |  |  |  |  |  | ); | 
| 38 |  |  |  |  |  |  | my $request    = { device => { ip_address => '24.24.24.24' } }; | 
| 39 |  |  |  |  |  |  | my $score      = $client->score($request); | 
| 40 |  |  |  |  |  |  | my $ip_address = $score->ip_address; | 
| 41 |  |  |  |  |  |  | say $ip_address->risk; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | This class contains the risk for the given C<ip_address>. | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | =head1 METHODS | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  | This class provides the following method: | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | =head2 risk | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | Returns the risk associated with the IP address. The value ranges from 0.01 to | 
| 54 |  |  |  |  |  |  | 99. A higher value indicates a higher risk. The IP address risk is distinct | 
| 55 |  |  |  |  |  |  | from the value returned by C<< risk_score >> methods of | 
| 56 |  |  |  |  |  |  | L<WebService::MinFraud::Model::Insights> and | 
| 57 |  |  |  |  |  |  | L<WebService::MinFraud::Model::Score> modules. | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head1 PREDICATE METHODS | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | The following predicate methods are available, which return true if the related | 
| 62 |  |  |  |  |  |  | data was present in the response body, false if otherwise: | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | =head2 has_risk | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =head1 SUPPORT | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | =head1 AUTHOR | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | Mateu Hunter <mhunter@maxmind.com> | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | This software is copyright (c) 2015 - 2020 by MaxMind, Inc. | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | This is free software; you can redistribute it and/or modify it under | 
| 79 |  |  |  |  |  |  | the same terms as the Perl 5 programming language system itself. | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =cut |