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