Songkick/Venue.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 1 totaltotal 97.4% 38 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Songkick/Performance.pm ↑ Summary Songkick/City.pm »
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 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 7 ▶use Net::Songkick::City;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 7 ▶use Net::Songkick::MetroArea;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 coerce 'Net::Songkick::Venue',
19 from 'HashRef',
20 3 ▶ via { Net::Songkick::Venue->new($_) };
Subroutine __ANON__: called CC=1 SCAR=0.0
21  
22 has $_ => (
23 is => 'ro',
24 isa => 'Undef|Str',
25 7 ) for qw[uri lat id lng displayName street zip phone website capacity description];
26  
27 7 has city => (
28 is => 'ro',
29 isa => 'Net::Songkick::City',
30 coerce => 1,
31 );
32  
33 7 has metroArea => (
34 is => 'ro',
35 isa => 'Net::Songkick::MetroArea',
36 coerce => 1,
37 );
38  
39 # Backwards compatibility
40 1 ▶sub metro_area { return $_[0]->metroArea }
Subroutine metro_area: called CC=1 SCAR=0.0
Pod undocumented
41  
42 7 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 7 __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 7 1;
« Songkick/Performance.pm ↑ Summary Songkick/City.pm »