File Coverage

blib/lib/CloudFlare/Client/Types.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 32 32 100.0


line stmt bran cond sub pod time code
1             package CloudFlare::Client::Types;
2             # ABSTRACT: Types for Cloudflare::Client
3              
4 6     6   50766 use strict; use warnings; no indirect 'fatal'; use namespace::autoclean;
  6     6   8  
  6     6   172  
  6     6   23  
  6         10  
  6         158  
  6         22  
  6         7  
  6         38  
  6         280  
  6         6  
  6         51  
5              
6 6     6   1412 use Type::Library -base, -declare => qw( CFCode ErrorCode);
  6         39132  
  6         61  
7             # Theres a bug about using undef as a hashref before this version
8 6     6   5756 use Type::Utils 0.039_12 -all;
  6         23043  
  6         53  
9 6     6   15257 use Types::Standard qw( Enum Maybe);
  6         82879  
  6         51  
10 6     6   4103 use Readonly;
  6         10  
  6         879  
11              
12             our $VERSION = 'v0.55.4'; # VERSION
13              
14             class_type 'LWP::UserAgent';
15             declare CFCode, as Enum[qw( E_UNAUTH E_INVLDINPUT E_MAXAPI)];
16             declare ErrorCode, as Maybe[CFCode];
17              
18             1; # End of CloudFlare::Client::Types
19              
20             __END__
21              
22             =pod
23              
24             =encoding UTF-8
25              
26             =head1 NAME
27              
28             CloudFlare::Client::Types - Types for Cloudflare::Client
29              
30             =head1 VERSION
31              
32             version v0.55.4
33              
34             =head1 SYNOPSIS
35              
36             use CloudFlare::Client::Types 'ErrorCode';
37              
38             =head1 SEE ALSO
39              
40             Please see those modules/websites for more information related to this module.
41              
42             =over 4
43              
44             =item *
45              
46             L<CloudFlare::Client|CloudFlare::Client>
47              
48             =back
49              
50             =for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
51              
52             =head1 SUPPORT
53              
54             =head2 Perldoc
55              
56             You can find documentation for this module with the perldoc command.
57              
58             perldoc CloudFlare::Client
59              
60             =head2 Websites
61              
62             The following websites have more information about this module, and may be of help to you. As always,
63             in addition to those websites please use your favorite search engine to discover more resources.
64              
65             =over 4
66              
67             =item *
68              
69             MetaCPAN
70              
71             A modern, open-source CPAN search engine, useful to view POD in HTML format.
72              
73             L<http://metacpan.org/release/CloudFlare-Client>
74              
75             =back
76              
77             =head2 Email
78              
79             You can email the author of this module at C<me+dev@peter-r.co.uk> asking for help with any problems you have.
80              
81             =head2 Source Code
82              
83             The code is open to the world, and available for you to hack on. Please feel free to browse it and play
84             with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
85             from your repository :)
86              
87             L<https://github.com/pwr22/cloudflare-client>
88              
89             git clone git://github.com/pwr22/cloudflare-client.git
90              
91             =head1 BUGS
92              
93             Please report any bugs or feature requests on the bugtracker website
94             https://github.com/pwr22/cloudflare-client/issues
95              
96             When submitting a bug or request, please include a test-file or a
97             patch to an existing test-file that illustrates the bug or desired
98             feature.
99              
100             =head1 AUTHOR
101              
102             Peter Roberts <me+dev@peter-r.co.uk>
103              
104             =head1 COPYRIGHT AND LICENSE
105              
106             This software is Copyright (c) 2016 by Peter Roberts.
107              
108             This is free software, licensed under:
109              
110             The MIT (X11) License
111              
112             =cut