lib/Net/Async/Spotify/Object/Generated/Playlist.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/PlayerError.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/PlaylistTrack.pm »
1 package Net::Async::Spotify::Object::Generated::Playlist;
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::Playlist - Package representing Spotify Playlist 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 Playlist Object attributes:
27  
28 =over 4
29  
30 =item collaborative
31  
32 Type:Boolean
33 Description:true if the owner allows other users to modify the playlist.
34  
35 =item description
36  
37 Type:String
38 Description:The playlist description. Only returned for modified, verified playlists, otherwise null.
39  
40 =item external_urls
41  
42 Type:ExternalUrlObject
43 Description:Known external URLs for this playlist.
44  
45 =item followers
46  
47 Type:FollowersObject
48 Description:Information about the followers of the playlist.
49  
50 =item href
51  
52 Type:String
53 Description:A link to the Web API endpoint providing full details of the playlist.
54  
55 =item id
56  
57 Type:String
58 Description:The Spotify ID for the playlist.
59  
60 =item images
61  
62 Type:Array[ImageObject]
63 Description:Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order. See Working with Playlists. Note: If returned, the source URL for the image (url) is temporary and will expire in less than a day.
64  
65 =item name
66  
67 Type:String
68 Description:The name of the playlist.
69  
70 =item owner
71  
72 Type:PublicUserObject
73 Description:The user who owns the playlist
74  
75 =item public
76  
77 Type:Boolean
78 Description:The playlist’s public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists
79  
80 =item snapshot_id
81  
82 Type:String
83 Description:The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version
84  
85 =item tracks
86  
87 Type:Array[PlaylistTrackObject]
88 Description:Information about the tracks of the playlist. Note, a track object may be null. This can happen if a track is no longer available.
89  
90 =item type
91  
92 Type:String
93 Description:The object type: “playlist”
94  
95 =item uri
96  
97 Type:String
98 Description:The Spotify URI for the playlist.
99  
100 =back
101  
102 =cut
103  
104 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
105 0 my ($class, %args) = @_;
106  
107 0 my $fields = {
108 collaborative => 'Boolean',
109 description => 'String',
110 external_urls => 'ExternalUrlObject',
111 followers => 'FollowersObject',
112 href => 'String',
113 id => 'String',
114 images => 'Array[ImageObject]',
115 name => 'String',
116 owner => 'PublicUserObject',
117 public => 'Boolean',
118 snapshot_id => 'String',
119 tracks => 'Array[PlaylistTrackObject]',
120 type => 'String',
121 uri => 'String',
122 };
123  
124 0 my $obj = next::method($class, $fields, %args);
125  
126 0 return $obj;
127 }
128  
129 32 1;
« lib/Net/Async/Spotify/Object/Generated/PlayerError.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/PlaylistTrack.pm »