blib/lib/WG/API/WoT/Regularteams.pm

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