lib/Net/Async/Spotify/Object/Generated/SimplifiedAlbum.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.0% 19 / 25 CC 1 SCAR 1.8
CC
1
Cov
79%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Net/Async/Spotify/Object/Generated/Show.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedArtist.pm »
1 package Net::Async::Spotify::Object::Generated::SimplifiedAlbum;
2  
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 32 our $VERSION = '0.002'; # VERSION
7 32 our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY
8  
9 32 ▶use mro;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 32 ▶use parent qw(Net::Async::Spotify::Object::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =encoding utf8
13  
14 =head1 NAME
15  
16 Net::Async::Spotify::Object::Generated::SimplifiedAlbum - Package representing Spotify SimplifiedAlbum Object
17  
18 =head1 DESCRIPTION
19  
20 Autogenerated module.
21 Based on https://developer.spotify.com/documentation/web-api/reference/#objects-index
22 Check C<crawl-api-doc.pl> for more information.
23  
24 =head1 PARAMETERS
25  
26 Those are Spotify SimplifiedAlbum Object attributes:
27  
28 =over 4
29  
30 =item album_group
31  
32 Type:String
33 Description:The field is present when getting an artist’s albums. Possible values are “album”, “single”, “compilation”, “appears_on”. Compare to album_type this field represents relationship between the artist and the album.
34  
35 =item album_type
36  
37 Type:String
38 Description:The type of the album: one of “album”, “single”, or “compilation”.
39  
40 =item artists
41  
42 Type:Array[SimplifiedArtistObject]
43 Description:The artists of the album. Each artist object includes a link in href to more detailed information about the artist.
44  
45 =item available_markets
46  
47 Type:Array[String]
48 Description:The markets in which the album is available: ISO 3166-1 alpha-2 country codes. Note that an album is considered available in a market when at least 1 of its tracks is available in that market.
49  
50 =item external_urls
51  
52 Type:ExternalUrlObject
53 Description:Known external URLs for this album.
54  
55 =item href
56  
57 Type:String
58 Description:A link to the Web API endpoint providing full details of the album.
59  
60 =item id
61  
62 Type:String
63 Description:The Spotify ID for the album.
64  
65 =item images
66  
67 Type:Array[ImageObject]
68 Description:The cover art for the album in various sizes, widest first.
69  
70 =item name
71  
72 Type:String
73 Description:The name of the album. In case of an album takedown, the value may be an empty string.
74  
75 =item release_date
76  
77 Type:String
78 Description:The date the album was first released, for example 1981. Depending on the precision, it might be shown as 1981-12 or 1981-12-15.
79  
80 =item release_date_precision
81  
82 Type:String
83 Description:The precision with which release_date value is known: year , month , or day.
84  
85 =item restrictions
86  
87 Type:AlbumRestrictionObject
88 Description:Included in the response when a content restriction is applied.
89 See Restriction Object for more details.
90  
91 =item total_tracks
92  
93 Type:Integer
94 Description:The total number of tracks in the album.
95  
96 =item type
97  
98 Type:String
99 Description:The object type: “album”
100  
101 =item uri
102  
103 Type:String
104 Description:The Spotify URI for the album.
105  
106 =back
107  
108 =cut
109  
110 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
111 0 my ($class, %args) = @_;
112  
113 0 my $fields = {
114 album_group => 'String',
115 album_type => 'String',
116 artists => 'Array[SimplifiedArtistObject]',
117 available_markets => 'Array[String]',
118 external_urls => 'ExternalUrlObject',
119 href => 'String',
120 id => 'String',
121 images => 'Array[ImageObject]',
122 name => 'String',
123 release_date => 'String',
124 release_date_precision => 'String',
125 restrictions => 'AlbumRestrictionObject',
126 total_tracks => 'Integer',
127 type => 'String',
128 uri => 'String',
129 };
130  
131 0 my $obj = next::method($class, $fields, %args);
132  
133 0 return $obj;
134 }
135  
136 32 1;
« lib/Net/Async/Spotify/Object/Generated/Show.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedArtist.pm »