blib/lib/WG/API/Data.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 66.6% 18 / 27 CC 3 SCAR 17.4
CC
3
Cov
62%
new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« blib/lib/WG/API.pm ↑ Summary blib/lib/WG/API/WoT/Globalwar.pm »
1 package WG::API::Data;
2  
3 5 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 WG::API::Data - module for work with API response
11  
12 =head1 VERSION
13  
14 Version v0.05
15  
16 =cut
17  
18 5 our $VERSION = 'v0.05';
19  
20  
21 =head1 SYNOPSIS
22  
23 Quick summary of what the module does.
24  
25 Perhaps a little code snippet.
26  
27 use WG::API::Data;
28  
29 my $wg_data = WG::API::Data->new();
30 ...
31  
32 =head1 CONSTRUCTOR
33  
34 =head2 new
35  
36 Create new response object.
37  
38 =cut
39  
40 sub new {
41 0 ▶ my $class = shift;
Subroutine new: not called CC=3 SCAR=24.8
Pod documented
42
43 0 ▶ my $self = $_[ 0 ] ? shift : {};
Branch: 1 branch
BranchTrueFalseTotal
$_[0] ? : 0 0 0
44 0 ▶ bless $self, ref( $class ) ? ref( $class ) : $class;
Branch: 1 branch
BranchTrueFalseTotal
ref $class ? : 0 0 0
45  
46 0 return $self;
47 }
48  
49 =head1 BUGS
50  
51 Please report any bugs or feature requests to C<cynovg at cpan.org>, or through the web interface at L<https://github.com/cynovg/WG-API/issues>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
52  
53 =head1 SUPPORT
54  
55 You can find documentation for this module with the perldoc command.
56  
57 perldoc WG::API
58  
59 You can also look for information at:
60  
61 =over 4
62  
63 =item * RT: GitHub's request tracker (report bugs here)
64  
65 L<https://github.com/cynovg/WG-API/issues>
66  
67 =item * AnnoCPAN: Annotated CPAN documentation
68  
69 L<http://annocpan.org/dist/WG-API>
70  
71 =item * CPAN Ratings
72  
73 L<http://cpanratings.perl.org/d/WG-API>
74  
75 =item * Search CPAN
76  
77 L<http://search.cpan.org/dist/WG-API/>
78  
79 =back
80  
81  
82 =head1 ACKNOWLEDGEMENTS
83  
84 ...
85  
86 =head1 SEE ALSO
87  
88 WG API Reference L<http://ru.wargaming.net/developers/>
89  
90 =head1 AUTHOR
91  
92 cynovg , C<< <cynovg at cpan.org> >>
93  
94 =head1 LICENSE AND COPYRIGHT
95  
96 Copyright 2015 Cyrill Novgorodcev.
97  
98 This program is free software; you can redistribute it and/or modify it
99 under the terms of the the Artistic License (2.0). You may obtain a
100 copy of the full license at:
101  
102 L<http://www.perlfoundation.org/artistic_license_2_0>
103  
104 Any use, modification, and distribution of the Standard or Modified
105 Versions is governed by this Artistic License. By using, modifying or
106 distributing the Package, you accept this license. Do not use, modify,
107 or distribute the Package, if you do not accept this license.
108  
109 If your Modified Version has been derived from a Modified Version made
110 by someone other than you, you are nevertheless required to ensure that
111 your Modified Version complies with the requirements of this license.
112  
113 This license does not grant you the right to use any trademark, service
114 mark, tradename, or logo of the Copyright Holder.
115  
116 This license includes the non-exclusive, worldwide, free-of-charge
117 patent license to make, have made, use, offer to sell, sell, import and
118 otherwise transfer the Package with respect to any patent claims
119 licensable by the Copyright Holder that are necessarily infringed by the
120 Package. If you institute patent litigation (including a cross-claim or
121 counterclaim) against any party alleging that the Package constitutes
122 direct or contributory patent infringement, then this Artistic License
123 to you shall terminate on the date that such litigation is filed.
124  
125 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
126 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
127 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
128 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
129 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
130 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
131 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
132 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
133  
134  
135 =cut
136  
137 5 1; # End of WG::API::Data
« blib/lib/WG/API.pm ↑ Summary blib/lib/WG/API/WoT/Globalwar.pm »