line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Net::Songkick::Venue - Models a venue in the Songkick API |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=cut |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Net::Songkick::Venue; |
8
|
|
|
|
|
|
|
|
9
|
6
|
|
|
6
|
|
516
|
use strict; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
195
|
|
10
|
6
|
|
|
6
|
|
34
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
241
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
|
30
|
use Moose; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
41
|
|
13
|
6
|
|
|
6
|
|
37606
|
use Moose::Util::TypeConstraints; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
55
|
|
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
14612
|
use Net::Songkick::City; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
205
|
|
16
|
6
|
|
|
6
|
|
2465
|
use Net::Songkick::MetroArea; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
841
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
coerce 'Net::Songkick::Venue', |
19
|
|
|
|
|
|
|
from 'HashRef', |
20
|
|
|
|
|
|
|
via { Net::Songkick::Venue->new($_) }; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has $_ => ( |
23
|
|
|
|
|
|
|
is => 'ro', |
24
|
|
|
|
|
|
|
isa => 'Str', |
25
|
|
|
|
|
|
|
) for qw[uri lat id lng displayName street zip phone website capacity description]; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
has city => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => 'Net::Songkick::City', |
30
|
|
|
|
|
|
|
coerce => 1, |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
has metroArea => ( |
34
|
|
|
|
|
|
|
is => 'ro', |
35
|
|
|
|
|
|
|
isa => 'Net::Songkick::MetroArea', |
36
|
|
|
|
|
|
|
coerce => 1, |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# Backwards compatibility |
40
|
1
|
|
|
1
|
0
|
29
|
sub metro_area { return $_[0]->metroArea } |
41
|
|
|
|
|
|
|
|
42
|
6
|
|
|
6
|
|
46
|
no Moose; |
|
6
|
|
|
|
|
34
|
|
|
6
|
|
|
|
|
31
|
|
43
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Dave Cross <dave@perlhacks.com> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SEE ALSO |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
perl(1), L<http://www.songkick.com/>, L<http://developer.songkick.com/> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Copyright (C) 2010, Magnum Solutions Ltd. All Rights Reserved. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This script is free software; you can redistribute it and/or modify it |
58
|
|
|
|
|
|
|
under the same terms as Perl itself. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |