Songkick/Location.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Songkick/Country.pm ↑ Summary Songkick/MetroArea.pm »
1 =head1 NAME
2  
3 Net::Songkick::Location - Models a location in the Songkick API
4  
5 =cut
6  
7 package Net::Songkick::Location;
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  
12 6 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 coerce 'Net::Songkick::Location',
16 from 'HashRef',
17 3 ▶ via { Net::Songkick::Location->new($_) };
Subroutine __ANON__: called CC=1 SCAR=0.0
18  
19 has $_ => (
20 is => 'ro',
21 isa => 'Str',
22 6 ) for qw[lng lat city];
23  
24 6 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 6 __PACKAGE__->meta->make_immutable;
26  
27 =head1 AUTHOR
28  
29 Dave Cross <dave@perlhacks.com>
30  
31 =head1 SEE ALSO
32  
33 perl(1), L<http://www.songkick.com/>, L<http://developer.songkick.com/>
34  
35 =head1 COPYRIGHT AND LICENSE
36  
37 Copyright (C) 2010, Magnum Solutions Ltd. All Rights Reserved.
38  
39 This script is free software; you can redistribute it and/or modify it
40 under the same terms as Perl itself.
41  
42 =cut
43  
44 6 1;
« Songkick/Country.pm ↑ Summary Songkick/MetroArea.pm »