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

filter: Statementstmt 46.4% 13 / 28 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 44.4% 4 / 9 Podpod 100% 5 / 5 totaltotal 42.3% 22 / 52 CC 6 SCAR 15.2
CC
6
Cov
34%
clanratings_types
6.0
clanratings_dates
6.0
clanratings_clans
6.0
CRAP 4.6
« blib/lib/WG/API/WoT/Globalwar.pm ↑ Summary blib/lib/WG/API/WoT/Ratings.pm »
1 package WG::API::WoT::ClansRatings;
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::ClansRatings
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 clanratings_types
23  
24 Method returns details on ratings types and categories.
25  
26 =cut
27  
28 sub clanratings_types {
29 0 ▶ my $self = shift;
Subroutine clanratings_types: not called CC=2 SCAR=17.9
Pod documented
30  
31 0 $self->_request( 'get', 'clanratings/types', ['language', 'fields'], 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 clanratings_dates
37  
38 Method returns dates with available rating data.
39  
40 =cut
41  
42 sub clanratings_dates {
43 0 ▶ my $self = shift;
Subroutine clanratings_dates: not called CC=2 SCAR=17.9
Pod documented
44  
45 0 $self->_request( 'get', 'clanratings/dates', ['language', 'fields', 'type', 'clan_id'], ['type'], $_[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 =head2 clanratings_clans
51  
52 Method returns clan ratings by specified IDs.
53  
54 =cut
55  
56 sub clanratings_clans {
57 0 ▶ my $self = shift;
Subroutine clanratings_clans: not called CC=2 SCAR=17.9
Pod documented
58  
59 0 $self->_request( 'get', 'clanratings/clans', ['language', 'fields', 'type', 'date', 'clan_id'], ['clan_id'], $_[0] );
60  
61 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
62 }
63  
64 =head2 clanratings_neighbors
65  
66 Method returns list of adjacent positions in specified clan rating.
67  
68 =cut
69  
70 sub clanratings_neighbors {
71 0 ▶ my $self = shift;
Subroutine clanratings_neighbors: not called CC=2 SCAR=17.9
Pod documented
72  
73 0 $self->_request( 'get', 'clanratings/neighbors', ['language', 'fields', 'type', 'date', 'clan_id', 'rank_field', 'limit'], ['type', 'clan_id', 'rank_field'], $_[0] );
74  
75 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
76 }
77  
78 =head2 clanratings_top
79  
80 Method returns the list of top clans by specified parameters.
81  
82 =cut
83  
84 sub clanratings_top {
85 0 ▶ my $self = shift;
Subroutine clanratings_top: not called CC=2 SCAR=17.9
Pod documented
86  
87 0 $self->_request( 'get', 'clanratings/top', ['language', 'fields', 'type', 'date', 'rank_field', 'limit', 'page_no'], ['type', 'rank_field'], $_[0] );
88  
89 0 ▶ return $self->status eq 'ok' ? $self->response : undef ;
Branch: 1 branch
BranchTrueFalseTotal
$self->status eq 'ok' ? : 0 0 0
90 }
91  
92 =head1 BUGS
93  
94 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.
95  
96 =head1 SUPPORT
97  
98 You can find documentation for this module with the perldoc command.
99  
100 perldoc WG::API
101  
102 You can also look for information at:
103  
104 =over 4
105  
106 =item * RT: GitHub's request tracker (report bugs here)
107  
108 L<https://github.com/cynovg/WG-API/issues>
109  
110 =item * AnnoCPAN: Annotated CPAN documentation
111  
112 L<http://annocpan.org/dist/WG-API>
113  
114 =item * CPAN Ratings
115  
116 L<http://cpanratings.perl.org/d/WG-API>
117  
118 =item * Search CPAN
119  
120 L<http://search.cpan.org/dist/WG-API/>
121  
122 =back
123  
124  
125 =head1 ACKNOWLEDGEMENTS
126  
127 ...
128  
129 =head1 SEE ALSO
130  
131 WG API Reference L<http://ru.wargaming.net/developers/>
132  
133 =head1 AUTHOR
134  
135 cynovg , C<< <cynovg at cpan.org> >>
136  
137 =head1 LICENSE AND COPYRIGHT
138  
139 Copyright 2015 Cyrill Novgorodcev.
140  
141 This program is free software; you can redistribute it and/or modify it
142 under the terms of the the Artistic License (2.0). You may obtain a
143 copy of the full license at:
144  
145 L<http://www.perlfoundation.org/artistic_license_2_0>
146  
147 Any use, modification, and distribution of the Standard or Modified
148 Versions is governed by this Artistic License. By using, modifying or
149 distributing the Package, you accept this license. Do not use, modify,
150 or distribute the Package, if you do not accept this license.
151  
152 If your Modified Version has been derived from a Modified Version made
153 by someone other than you, you are nevertheless required to ensure that
154 your Modified Version complies with the requirements of this license.
155  
156 This license does not grant you the right to use any trademark, service
157 mark, tradename, or logo of the Copyright Holder.
158  
159 This license includes the non-exclusive, worldwide, free-of-charge
160 patent license to make, have made, use, offer to sell, sell, import and
161 otherwise transfer the Package with respect to any patent claims
162 licensable by the Copyright Holder that are necessarily infringed by the
163 Package. If you institute patent litigation (including a cross-claim or
164 counterclaim) against any party alleging that the Package constitutes
165 direct or contributory patent infringement, then this Artistic License
166 to you shall terminate on the date that such litigation is filed.
167  
168 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
169 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
170 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
171 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
172 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
173 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
174 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
175 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
176  
177  
178 =cut
179  
180 1 1; # End of WG::API::WoT::ClansRatings
« blib/lib/WG/API/WoT/Globalwar.pm ↑ Summary blib/lib/WG/API/WoT/Ratings.pm »