lib/Net/Async/Spotify/Object/Generated/Artist.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/AlbumRestriction.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/AudioFeatures.pm »
1 package Net::Async::Spotify::Object::Generated::Artist;
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::Artist - Package representing Spotify Artist 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 Artist Object attributes:
27  
28 =over 4
29  
30 =item external_urls
31  
32 Type:ExternalUrlObject
33 Description:Known external URLs for this artist.
34  
35 =item followers
36  
37 Type:FollowersObject
38 Description:Information about the followers of the artist.
39  
40 =item genres
41  
42 Type:Array[String]
43 Description:A list of the genres the artist is associated with. For example: "Prog Rock" , "Post-Grunge". (If not yet classified, the array is empty.)
44  
45 =item href
46  
47 Type:String
48 Description:A link to the Web API endpoint providing full details of the artist.
49  
50 =item id
51  
52 Type:String
53 Description:The Spotify ID for the artist.
54  
55 =item images
56  
57 Type:Array[ImageObject]
58 Description:Images of the artist in various sizes, widest first.
59  
60 =item name
61  
62 Type:String
63 Description:The name of the artist.
64  
65 =item popularity
66  
67 Type:Integer
68 Description:The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular. The artist’s popularity is calculated from the popularity of all the artist’s tracks.
69  
70 =item type
71  
72 Type:String
73 Description:The object type: "artist"
74  
75 =item uri
76  
77 Type:String
78 Description:The Spotify URI for the artist.
79  
80 =back
81  
82 =cut
83  
84 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
85 0 my ($class, %args) = @_;
86  
87 0 my $fields = {
88 external_urls => 'ExternalUrlObject',
89 followers => 'FollowersObject',
90 genres => 'Array[String]',
91 href => 'String',
92 id => 'String',
93 images => 'Array[ImageObject]',
94 name => 'String',
95 popularity => 'Integer',
96 type => 'String',
97 uri => 'String',
98 };
99  
100 0 my $obj = next::method($class, $fields, %args);
101  
102 0 return $obj;
103 }
104  
105 32 1;
« lib/Net/Async/Spotify/Object/Generated/AlbumRestriction.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/AudioFeatures.pm »