Songkick/Performance.pm

filter: Statementstmt 95.8% 23 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 93.5% 29 / 31 CC 1 SCAR 0.2
CC
1
Cov
96%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Songkick/MusicBrainz.pm ↑ Summary Songkick/Venue.pm »
1 =head1 NAME
2  
3 Net::Songkick::Performance - Models a performance in the Songkick API
4  
5 =cut
6  
7 package Net::Songkick::Performance;
8  
9 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 6 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 6 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 6 ▶use Net::Songkick::Artist;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 coerce 'Net::Songkick::Performance',
17 from 'HashRef',
18 0 ▶ via { Net::Songkick::Performance->new($_) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
19  
20 has $_ => (
21 is => 'ro',
22 isa => 'Str',
23 6 ) for qw[displayName billing billingIndex id];
24  
25 6 has artist => (
26 is => 'ro',
27 isa => 'Net::Songkick::Artist',
28 coerce => 1,
29 );
30  
31 6 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 6 __PACKAGE__->meta->make_immutable;
33  
34 =head1 AUTHOR
35  
36 Dave Cross <dave@perlhacks.com>
37  
38 =head1 SEE ALSO
39  
40 perl(1), L<http://www.songkick.com/>, L<http://developer.songkick.com/>
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 Copyright (C) 2010, Magnum Solutions Ltd. All Rights Reserved.
45  
46 This script is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself.
48  
49 =cut
50  
51 6 1;
« Songkick/MusicBrainz.pm ↑ Summary Songkick/Venue.pm »