CoverArtArchive/CoverArt.pm

filter: Statementstmt 96.0% 24 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 87.1% 27 / 31 CC 2 SCAR 7.3
CC
2
Cov
89%
__ANON__
3.7
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« CoverArtArchive.pm ↑ Summary
1 package Net::CoverArtArchive::CoverArt;
2 {
3 1 $Net::CoverArtArchive::CoverArt::VERSION = '1.02';
4 }
5 # ABSTRACT: A single cover art image
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 0 ▶coerce 'Bool', from class_type('JSON::XS::Boolean'), via { $_ ? 1 : 0 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
$_ ? : 0 0 0
13  
14 1 has id => (
15 isa => 'Int',
16 is => 'ro',
17 required => 1
18 );
19  
20 1 has types => (
21 isa => 'ArrayRef[Str]',
22 is => 'ro',
23 );
24  
25 1 has is_front => (
26 isa => 'Bool',
27 is => 'ro',
28 init_arg => 'front',
29 coerce => 1
30 );
31  
32 1 has is_back => (
33 isa => 'Bool',
34 is => 'ro',
35 init_arg => 'back',
36 coerce => 1
37 );
38  
39 1 has comment => (
40 isa => 'Str',
41 is => 'ro',
42 );
43  
44 1 has image => (
45 isa => 'Str',
46 is => 'ro',
47 );
48  
49 1 has large_thumbnail => (
50 isa => 'Str',
51 is => 'ro',
52 );
53  
54 1 has small_thumbnail => (
55 isa => 'Str',
56 is => 'ro',
57 );
58  
59 1 has approved => (
60 isa => 'Bool',
61 is => 'ro',
62 coerce => 1
63 );
64  
65 1 has edit => (
66 isa => 'Str',
67 is => 'ro',
68 );
69  
70 1 __PACKAGE__->meta->make_immutable;
71 1 1;
72  
73  
74 =pod
75  
76 =encoding utf-8
77  
78 =head1 NAME
79  
80 Net::CoverArtArchive::CoverArt - A single cover art image
81  
82 =head1 ATTRIBUTES
83  
84 =head2 id
85  
86 The ID of this cover art. Fairly internal, you probably don't need to do
87 anything with this.
88  
89 =head2 types
90  
91 An array reference of strings, where each string describes the type of this
92 image. For example, an image might be about a specific medium, or it might be a
93 page in a booklet.
94  
95 =head2 is_front
96  
97 Whether this image is considered to be the 'frontiest' image of a release.
98  
99 =head2 is_back
100  
101 Whether this image is considered to be the 'backiest' image of a release.
102  
103 =head2 comment
104  
105 A string potentially describing additionally information about this image. Free
106 text and unstructured.
107  
108 =head2 image
109  
110 The full URL of the image
111  
112 =head2 large_thumbnail
113  
114 A URL to the large thumbnail of this image.
115  
116 =head2 small_thumbnail
117  
118 A URL to the small thumbnail of this image.
119  
120 =head2 approved
121  
122 Whether this image has passed peer review.
123  
124 =head2 edit
125  
126 A URL to the MusicBrainz edit that originally added this piece of artwork.
127  
128 =head1 AUTHORS
129  
130 =over 4
131  
132 =item *
133  
134 Oliver Charles <oliver@musicbrainz.org>
135  
136 =item *
137  
138 Brian Cassidy <bricas@cpan.org>
139  
140 =back
141  
142 =head1 COPYRIGHT AND LICENSE
143  
144 This software is copyright (c) 2012 by Oliver Charles <oliver@musicbrainz.org>.
145  
146 This is free software; you can redistribute it and/or modify it under
147 the same terms as the Perl 5 programming language system itself.
148  
149 =cut
150  
151  
152 __END__
« CoverArtArchive.pm ↑ Summary