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

filter: Statementstmt 30.7% 16 / 52 Branchbran 0.0% 0 / 24 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 29.4% 5 / 17 Podpod 100% 12 / 12 totaltotal 31.4% 33 / 105 CC 13 SCAR 16.4
CC
13
Cov
21%
globalwar_clans
6.0
globalwar_maps
6.0
globalwar_provinces
6.0
CRAP 5.1
« blib/lib/WG/API/Data.pm ↑ Summary blib/lib/WG/API/WoT/ClansRatings.pm »
1 package WG::API::WoT::Globalwar;
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 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 =head1 NAME
10  
11 WG::API::WoT::
12  
13 =head1 VERSION
14  
15 Version v0.05
16  
17 =cut
18  
19 1 our $VERSION = 'v0.05';
20  
21 =head1 METHODS
22  
23 =head2 globalwar_clans
24  
25 Method returns list of clans engaged in Clan Wars.
26  
27 =cut
28  
29 sub globalwar_clans{
30 0 ▶ my $self = shift;
Subroutine globalwar_clans: not called CC=2 SCAR=17.9
Pod documented
31  
32 0 $self->_request( 'get', 'globalwar/clans', ['language', 'fields', 'map_id', 'limit', 'page_no'], ['map_id'], $_[0] );
33  
34 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
35 }
36  
37 =head2 globalwar_maps
38  
39 Method returns information about all maps on Global Map. For each map there is information about last season.
40  
41 =cut
42  
43 sub globalwar_maps {
44 0 ▶ my $self = shift;
Subroutine globalwar_maps: not called CC=2 SCAR=17.9
Pod documented
45  
46 0 $self->_request( 'get', 'globalwar/maps', ['language', 'fields'], undef, $_[0] );
47  
48 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
49 }
50  
51 =head2 globalwar_provinces
52  
53 Method returns list of provinces on the Global Map.
54  
55 =cut
56  
57 sub globalwar_provinces {
58 0 ▶ my $self = shift;
Subroutine globalwar_provinces: not called CC=2 SCAR=17.9
Pod documented
59  
60 0 $self->_request( 'get', 'globalwar/provinces', ['language', 'fields', 'map_id', 'province_id', 'region_id', 'status'], ['map_id'], $_[0] );
61  
62 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
63 }
64  
65 =head2 globalwar_tournaments
66  
67 Method returns list of tournaments on the selected Global Map.
68  
69 =cut
70  
71 sub globalwar_tournaments {
72 0 ▶ my $self = shift;
Subroutine globalwar_tournaments: not called CC=2 SCAR=17.9
Pod documented
73  
74 0 $self->_request( 'get', 'globalwar/tournaments', ['language', 'fields', 'map_id', 'province_id'], ['map_id', 'province_id'], $_[0] );
75  
76 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
77 }
78  
79 =head2 globalwar_battles
80  
81 Method returns list of clan's battles.
82  
83 =cut
84  
85 sub globalwar_battles {
86 0 ▶ my $self = shift;
Subroutine globalwar_battles: not called CC=2 SCAR=17.9
Pod documented
87  
88 0 $self->_request( 'get', 'globalwar/battles', ['language', 'fields', 'access_token', 'map_id', 'clan_id'], ['map_id', 'clan_id'], $_[0] );
89  
90 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
91 }
92  
93 =head2 globalwar_accountpoints
94  
95 Method returns information about player's fame points.
96  
97 =cut
98  
99 sub globalwar_accountpoints {
100 0 ▶ my $self = shift;
Subroutine globalwar_accountpoints: not called CC=2 SCAR=17.9
Pod documented
101  
102 0 $self->_request( 'get', 'globalwar/accountpoints', ['language', 'fields', 'map_id', 'account_id'], ['map_id', 'account_id'], $_[0] );
103  
104 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
105 }
106  
107 =head2 globalwar_accountpointshistory
108  
109 Method returns information about the changes of player's fame points.
110  
111 =cut
112  
113 sub globalwar_accountpointshistory {
114 0 ▶ my $self = shift;
Subroutine globalwar_accountpointshistory: not called CC=2 SCAR=17.9
Pod documented
115  
116 0 $self->_request( 'get', 'globalwar/accountpointshistory', ['language', 'fields', 'access_token', 'map_id', 'since', 'until', 'page_no', 'limit'], ['access_token', 'map_id'], $_[0] );
117  
118 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
119 }
120  
121 =head2 globalwar_accountpointsrating
122  
123 Method returns list of top players in fame points rating.
124  
125 =cut
126  
127 sub globalwar_accountpointsrating {
128 0 ▶ my $self = shift;
Subroutine globalwar_accountpointsrating: not called CC=2 SCAR=17.9
Pod documented
129  
130 0 $self->_request( 'get', 'globalwar/accountpointsrating', ['language', 'fields', 'map_id', 'page_no', 'limit'], ['map_id'], $_[0] );
131  
132 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
133 }
134  
135 =head2 globalwar_clanpoints
136  
137 Method returns information about clan's fame points.
138  
139 =cut
140  
141 sub globalwar_clanpoints {
142 0 ▶ my $self = shift;
Subroutine globalwar_clanpoints: not called CC=2 SCAR=17.9
Pod documented
143  
144 0 $self->_request( 'get', 'globalwar/clanpoints', ['language', 'fields', 'map_id', 'clan_id'], ['map_id', 'clan_id'], $_[0] );
145  
146 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
147 }
148  
149 =head2 globalwar_clanpointshistory
150  
151 Method returns information about the changes of clan's fame points.
152  
153 =cut
154  
155 sub globalwar_clanpointshistory {
156 0 ▶ my $self = shift;
Subroutine globalwar_clanpointshistory: not called CC=2 SCAR=17.9
Pod documented
157  
158 0 $self->_request( 'get', 'globalwar/clanpointshistory', ['language', 'fields', 'map_id', 'clan_id', 'since', 'until', 'page_no', 'limit'], ['map_id', 'clan_id'], $_[0] );
159  
160 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
161 }
162  
163 =head2 globalwar_clanpointsrating
164  
165 Method returns list of top clans in fame points rating.
166  
167 =cut
168  
169 sub globalwar_clanpointsrating {
170 0 ▶ my $self = shift;
Subroutine globalwar_clanpointsrating: not called CC=2 SCAR=17.9
Pod documented
171  
172 0 $self->_request( 'get', 'globalwar/clanpointsrating', ['language', 'fields', 'map_id', 'page_no', 'limit'], ['map_id'], $_[0] );
173  
174 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
175 }
176  
177 =head2 globalwar_clanprovinces
178  
179 Method returns lists of clans provinces.
180  
181 =cut
182  
183 sub globalwar_clanprovinces {
184 0 ▶ my $self = shift;
Subroutine globalwar_clanprovinces: not called CC=2 SCAR=17.9
Pod documented
185  
186 0 $self->_request( 'get', 'globalwar/clanprovinces', ['language', 'fields', 'clan_id'], ['clan_id'], $_[0] );
187  
188 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
189 }
190  
191 =head1 BUGS
192  
193 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.
194  
195 =head1 SUPPORT
196  
197 You can find documentation for this module with the perldoc command.
198  
199 perldoc WG::API
200  
201 You can also look for information at:
202  
203 =over 4
204  
205 =item * RT: GitHub's request tracker (report bugs here)
206  
207 L<https://github.com/cynovg/WG-API/issues>
208  
209 =item * AnnoCPAN: Annotated CPAN documentation
210  
211 L<http://annocpan.org/dist/WG-API>
212  
213 =item * CPAN Ratings
214  
215 L<http://cpanratings.perl.org/d/WG-API>
216  
217 =item * Search CPAN
218  
219 L<http://search.cpan.org/dist/WG-API/>
220  
221 =back
222  
223  
224 =head1 ACKNOWLEDGEMENTS
225  
226 ...
227  
228 =head1 SEE ALSO
229  
230 WG API Reference L<http://ru.wargaming.net/developers/>
231  
232 =head1 AUTHOR
233  
234 cynovg , C<< <cynovg at cpan.org> >>
235  
236 =head1 LICENSE AND COPYRIGHT
237  
238 Copyright 2015 Cyrill Novgorodcev.
239  
240 This program is free software; you can redistribute it and/or modify it
241 under the terms of the the Artistic License (2.0). You may obtain a
242 copy of the full license at:
243  
244 L<http://www.perlfoundation.org/artistic_license_2_0>
245  
246 Any use, modification, and distribution of the Standard or Modified
247 Versions is governed by this Artistic License. By using, modifying or
248 distributing the Package, you accept this license. Do not use, modify,
249 or distribute the Package, if you do not accept this license.
250  
251 If your Modified Version has been derived from a Modified Version made
252 by someone other than you, you are nevertheless required to ensure that
253 your Modified Version complies with the requirements of this license.
254  
255 This license does not grant you the right to use any trademark, service
256 mark, tradename, or logo of the Copyright Holder.
257  
258 This license includes the non-exclusive, worldwide, free-of-charge
259 patent license to make, have made, use, offer to sell, sell, import and
260 otherwise transfer the Package with respect to any patent claims
261 licensable by the Copyright Holder that are necessarily infringed by the
262 Package. If you institute patent litigation (including a cross-claim or
263 counterclaim) against any party alleging that the Package constitutes
264 direct or contributory patent infringement, then this Artistic License
265 to you shall terminate on the date that such litigation is filed.
266  
267 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
268 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
269 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
270 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
271 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
272 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
273 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
274 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
275  
276  
277 =cut
278  
279 1 1; # End of WG::API::WoT::Globalwar
« blib/lib/WG/API/Data.pm ↑ Summary blib/lib/WG/API/WoT/ClansRatings.pm »