Songkick/City.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Songkick/Venue.pm ↑ Summary Songkick/Country.pm »
1 =head1 NAME
2  
3 Net::Songkick::City - Models a city in the Songkick API
4  
5 =cut
6  
7 package Net::Songkick::City;
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 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 7 ▶use Net::Songkick::Country;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 coerce 'Net::Songkick::City',
17 from 'HashRef',
18 1 ▶ via { Net::Songkick::City->new($_) };
Subroutine __ANON__: called CC=1 SCAR=0.0
19  
20 has $_ => (
21 is => 'ro',
22 isa => 'Str',
23 7 ) for qw[displayName id uri];
24  
25 7 has country => (
26 is => 'ro',
27 isa => 'Net::Songkick::Country',
28 coerce => 1,
29 );
30  
31 7 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 7 __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) 2018, 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 7 1;
« Songkick/Venue.pm ↑ Summary Songkick/Country.pm »