| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::MinFraud::Data::Rx::Type::WebURI; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 36 | use 5.010; | 
|  | 2 |  |  |  |  | 7 |  | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 2 |  |  | 2 |  | 21 | use strict; | 
|  | 2 |  |  |  |  | 6 |  | 
|  | 2 |  |  |  |  | 42 |  | 
| 6 | 2 |  |  | 2 |  | 10 | use warnings; | 
|  | 2 |  |  |  |  | 15 |  | 
|  | 2 |  |  |  |  | 57 |  | 
| 7 | 2 |  |  | 2 |  | 9 | use namespace::autoclean; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 12 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | our $VERSION = '1.009001'; | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 2 |  |  | 2 |  | 1026 | use Data::Validate::URI qw(is_web_uri); | 
|  | 2 |  |  |  |  | 1698 |  | 
|  | 2 |  |  |  |  | 106 |  | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 2 |  |  | 2 |  | 15 | use parent 'Data::Rx::CommonType::EasyNew'; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 11 |  | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 2 |  |  | 2 |  | 105 | use Role::Tiny::With; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 236 |  | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | with 'WebService::MinFraud::Role::Data::Rx::Type'; | 
| 18 |  |  |  |  |  |  |  | 
| 19 |  |  |  |  |  |  | sub assert_valid { | 
| 20 | 2 |  |  | 2 | 0 | 170 | my ( $self, $value ) = @_; | 
| 21 |  |  |  |  |  |  |  | 
| 22 | 2 | 100 | 66 |  |  | 40 | return 1 | 
| 23 |  |  |  |  |  |  | if $value | 
| 24 |  |  |  |  |  |  | && is_web_uri($value); | 
| 25 |  |  |  |  |  |  |  | 
| 26 | 1 |  |  |  |  | 184 | $self->fail( | 
| 27 |  |  |  |  |  |  | { | 
| 28 |  |  |  |  |  |  | error   => [qw(type)], | 
| 29 |  |  |  |  |  |  | message => 'Found value is not a valid Web URI.', | 
| 30 |  |  |  |  |  |  | value   => $value, | 
| 31 |  |  |  |  |  |  | } | 
| 32 |  |  |  |  |  |  | ); | 
| 33 |  |  |  |  |  |  | } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | sub type_uri { | 
| 36 |  |  |  |  |  |  | ## no critic(ValuesAndExpressions::ProhibitCommaSeparatedStatements) | 
| 37 | 40 |  |  | 40 | 0 | 748 | 'tag:maxmind.com,MAXMIND:rx/weburi'; | 
| 38 |  |  |  |  |  |  | } | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | 1; | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | # ABSTRACT: A type to check for a valid Web URI | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | __END__ | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =pod | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | =encoding UTF-8 | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | =head1 NAME | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | WebService::MinFraud::Data::Rx::Type::WebURI - A type to check for a valid Web URI | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | =head1 VERSION | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | version 1.009001 | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =head1 SUPPORT | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>. | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head1 AUTHOR | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Mateu Hunter <mhunter@maxmind.com> | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | This software is copyright (c) 2015 - 2019 by MaxMind, Inc. | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | This is free software; you can redistribute it and/or modify it under | 
| 71 |  |  |  |  |  |  | the same terms as the Perl 5 programming language system itself. | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =cut |