File Coverage

blib/lib/WebService/MinFraud/Role/HasLocales.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package WebService::MinFraud::Role::HasLocales;
2              
3 4     4   2238 use Moo::Role;
  4         12  
  4         30  
4 4     4   1323 use namespace::autoclean;
  4         13  
  4         25  
5              
6             our $VERSION = '1.009001';
7              
8 4     4   335 use Sub::Quote qw( quote_sub );
  4         11  
  4         237  
9 4     4   32 use WebService::MinFraud::Types qw( LocalesArrayRef );
  4         9  
  4         396  
10              
11             has locales => (
12             is => 'ro',
13             isa => LocalesArrayRef,
14             default => quote_sub(q{ ['en'] }),
15             predicate => 1,
16             );
17              
18             1;
19              
20             # ABSTRACT: A role for (language) locales
21              
22             __END__
23              
24             =pod
25              
26             =encoding UTF-8
27              
28             =head1 NAME
29              
30             WebService::MinFraud::Role::HasLocales - A role for (language) locales
31              
32             =head1 VERSION
33              
34             version 1.009001
35              
36             =head1 SUPPORT
37              
38             Bugs may be submitted through L<https://github.com/maxmind/minfraud-api-perl/issues>.
39              
40             =head1 AUTHOR
41              
42             Mateu Hunter <mhunter@maxmind.com>
43              
44             =head1 COPYRIGHT AND LICENSE
45              
46             This software is copyright (c) 2015 - 2019 by MaxMind, Inc.
47              
48             This is free software; you can redistribute it and/or modify it under
49             the same terms as the Perl 5 programming language system itself.
50              
51             =cut