blib/lib/WG/API/Accounts.pm untested

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