line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Wikimapia::Category; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$WebService::Wikimapia::Category::VERSION = '0.14'; |
4
|
|
|
|
|
|
|
$WebService::Wikimapia::Category::AUTHORITY = 'cpan:MANWAR'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
WebService::Wikimapia::Category - Placeholder for 'category' of L. |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.14 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
7
|
|
|
7
|
|
137
|
use 5.006; |
|
7
|
|
|
|
|
22
|
|
17
|
7
|
|
|
7
|
|
34
|
use Data::Dumper; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
347
|
|
18
|
7
|
|
|
7
|
|
2542
|
use WebService::Wikimapia::Category::Synonym; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
172
|
|
19
|
|
|
|
|
|
|
|
20
|
7
|
|
|
7
|
|
43
|
use Moo; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
24
|
|
21
|
7
|
|
|
7
|
|
1716
|
use namespace::autoclean; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
27
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has 'id' => (is => 'ro'); |
24
|
|
|
|
|
|
|
has 'name' => (is => 'ro'); |
25
|
|
|
|
|
|
|
has 'description' => (is => 'ro'); |
26
|
|
|
|
|
|
|
has 'amount' => (is => 'ro'); |
27
|
|
|
|
|
|
|
has 'icon' => (is => 'ro'); |
28
|
|
|
|
|
|
|
has 'synonyms' => (is => 'ro'); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub BUILDARGS { |
31
|
0
|
|
|
0
|
0
|
|
my ($class, $args) = @_; |
32
|
|
|
|
|
|
|
|
33
|
0
|
0
|
|
|
|
|
if (exists $args->{'synonyms'}) { |
34
|
0
|
|
|
|
|
|
my $synonyms = []; |
35
|
0
|
|
|
|
|
|
foreach my $synonym (@{$args->{synonyms}}) { |
|
0
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
push @$synonyms, WebService::Wikimapia::Category::Synonym->new($synonym); |
37
|
|
|
|
|
|
|
} |
38
|
0
|
|
|
|
|
|
$args->{'synonyms'} = $synonyms; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
return $args; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 METHODS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 id() |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 name() |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 description() |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 amount() |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 icon() |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 synonyms() |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Mohammad S Anwar, C<< >> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 REPOSITORY |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
L |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 BUGS |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Please report any bugs or feature requests to C
|
69
|
|
|
|
|
|
|
rt.cpan.org>, or through the web interface at L. |
70
|
|
|
|
|
|
|
I will be notified and then you'll automatically be notified of progress on your |
71
|
|
|
|
|
|
|
bug as I make changes. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 SUPPORT |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
perldoc WebService::Wikimapia::Category |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
You can also look for information at: |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=over 4 |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item * CPAN Ratings |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * Search CPAN |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
L |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=back |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Copyright (C) 2011 - 2015 Mohammad S Anwar. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under |
106
|
|
|
|
|
|
|
the terms of the the Artistic License (2.0). You may obtain a copy of the full |
107
|
|
|
|
|
|
|
license at: |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified Versions is |
112
|
|
|
|
|
|
|
governed by this Artistic License.By using, modifying or distributing the Package, |
113
|
|
|
|
|
|
|
you accept this license. Do not use, modify, or distribute the Package, if you do |
114
|
|
|
|
|
|
|
not accept this license. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made by someone |
117
|
|
|
|
|
|
|
other than you,you are nevertheless required to ensure that your Modified Version |
118
|
|
|
|
|
|
|
complies with the requirements of this license. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service mark, |
121
|
|
|
|
|
|
|
tradename, or logo of the Copyright Holder. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge patent license |
124
|
|
|
|
|
|
|
to make, have made, use, offer to sell, sell, import and otherwise transfer the |
125
|
|
|
|
|
|
|
Package with respect to any patent claims licensable by the Copyright Holder that |
126
|
|
|
|
|
|
|
are necessarily infringed by the Package. If you institute patent litigation |
127
|
|
|
|
|
|
|
(including a cross-claim or counterclaim) against any party alleging that the |
128
|
|
|
|
|
|
|
Package constitutes direct or contributory patent infringement,then this Artistic |
129
|
|
|
|
|
|
|
License to you shall terminate on the date that such litigation is filed. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND |
132
|
|
|
|
|
|
|
CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED |
133
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR |
134
|
|
|
|
|
|
|
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS |
135
|
|
|
|
|
|
|
REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, |
136
|
|
|
|
|
|
|
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE |
137
|
|
|
|
|
|
|
OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=cut |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
1; # End of WebService::Wikimapia::Category |