line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::EveOnline::EveCentral::Request::EVEMon; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Games::EveOnline::EveCentral::Request::EVEMon::VERSION = '0.001'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Create a request for the evemon endpoint. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
35536
|
use Moo 1.003001; |
|
1
|
|
|
|
|
19100
|
|
|
1
|
|
|
|
|
8
|
|
11
|
1
|
|
|
1
|
|
3178
|
use MooX::Types::MooseLike 0.25; |
|
1
|
|
|
|
|
1470
|
|
|
1
|
|
|
|
|
42
|
|
12
|
1
|
|
|
1
|
|
805
|
use MooX::StrictConstructor 0.006; |
|
1
|
|
|
|
|
14777
|
|
|
1
|
|
|
|
|
9
|
|
13
|
1
|
|
|
1
|
|
35056
|
use MooX::Types::MooseLike::Base qw(AnyOf ArrayRef Int Str); |
|
1
|
|
|
|
|
6886
|
|
|
1
|
|
|
|
|
155
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
34
|
use 5.012; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
61
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
extends 'Games::EveOnline::EveCentral::Request'; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
1235
|
use Readonly 1.03; |
|
1
|
|
|
|
|
3568
|
|
|
1
|
|
|
|
|
123
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Readonly::Scalar my $ENDPOINT => 'evemon'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub request { |
27
|
1
|
|
|
1
|
1
|
2218
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
13
|
return $self->http_request($ENDPOINT); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; # End of Games::EveOnline::EveCentral::Request::EVEMon |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Games::EveOnline::EveCentral::Request::EVEMon - Create a request for the evemon endpoint. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.001 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $req = Games::EveOnline::EveCentral::Request::EVEMon->new->request; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 DESCRIPTION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This class is used to create HTTP::Request objects suitable to call the |
55
|
|
|
|
|
|
|
`evemon` method on EVE Central. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Examples: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=over 4 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item * L<http://api.eve-central.com/api/evemon> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=back |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=for test_synopsis no strict 'vars' |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 METHODS |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 request |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Returns an HTTP::Request object which can be used to call the 'evemon' |
72
|
|
|
|
|
|
|
endpoint. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=begin private =end private |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 AUTHOR |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Pedro Figueiredo, C<< <me at pedrofigueiredo.org> >> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 BUGS |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Please report any bugs or feature requests through the web interface at |
84
|
|
|
|
|
|
|
L<https://github.com/pfig/games-eveonline-evecentral/issues>. I will be |
85
|
|
|
|
|
|
|
notified, and then you'll automatically be notified of progress on your bug as |
86
|
|
|
|
|
|
|
I make changes. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 SUPPORT |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
perldoc Games::EveOnline::EveCentral |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
You can also look for information at: |
97
|
|
|
|
|
|
|
=over 4 |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * GitHub Issues (report bugs here) |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
L<https://github.com/pfig/games-eveonline-evecentral/issues> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Games-EveOnline-EveCentral> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item * CPAN Ratings |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Games-EveOnline-EveCentral> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item * CPAN |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
L<http://metacpan.org/module/Games::EveOnline::EveCentral> |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=back |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=over 4 |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=item * The people behind EVE Central. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
L<http://eve-central.com/> |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=back |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Copyright 2013 Pedro Figueiredo. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
132
|
|
|
|
|
|
|
under the terms of the Artistic License. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=end private |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=head1 AUTHOR |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Pedro Figueiredo <me@pedrofigueiredo.org> |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Pedro Figueiredo. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
147
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |