lib/Net/Async/Spotify/Object/Generated/Show.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/SavedTrack.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedAlbum.pm »
1 package Net::Async::Spotify::Object::Generated::Show;
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::Show - Package representing Spotify Show 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 Show Object attributes:
27  
28 =over 4
29  
30 =item available_markets
31  
32 Type:Array[String]
33 Description:A list of the countries in which the show can be played, identified by their ISO 3166-1 alpha-2 code.
34  
35 =item copyrights
36  
37 Type:Array[CopyrightObject]
38 Description:The copyright statements of the show.
39  
40 =item description
41  
42 Type:String
43 Description:A description of the show. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
44  
45 =item episodes
46  
47 Type:Array[SimplifiedEpisodeObject]
48 Description:A list of the show’s episodes.
49  
50 =item explicit
51  
52 Type:Boolean
53 Description:Whether or not the show has explicit content (true = yes it does; false = no it does not OR unknown).
54  
55 =item external_urls
56  
57 Type:ExternalUrlObject
58 Description:External URLs for this show.
59  
60 =item href
61  
62 Type:String
63 Description:A link to the Web API endpoint providing full details of the show.
64  
65 =item html_description
66  
67 Type:String
68 Description:A description of the show. This field may contain HTML tags.
69  
70 =item id
71  
72 Type:String
73 Description:The Spotify ID for the show.
74  
75 =item images
76  
77 Type:Array[ImageObject]
78 Description:The cover art for the show in various sizes, widest first.
79  
80 =item is_externally_hosted
81  
82 Type:Boolean
83 Description:True if all of the show’s episodes are hosted outside of Spotify’s CDN. This field might be null in some cases.
84  
85 =item languages
86  
87 Type:Array[String]
88 Description:A list of the languages used in the show, identified by their ISO 639 code.
89  
90 =item media_type
91  
92 Type:String
93 Description:The media type of the show.
94  
95 =item name
96  
97 Type:String
98 Description:The name of the episode.
99  
100 =item publisher
101  
102 Type:String
103 Description:The publisher of the show.
104  
105 =item type
106  
107 Type:String
108 Description:The object type: “show”.
109  
110 =item uri
111  
112 Type:String
113 Description:The Spotify URI for the show.
114  
115 =back
116  
117 =cut
118  
119 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
120 0 my ($class, %args) = @_;
121  
122 0 my $fields = {
123 available_markets => 'Array[String]',
124 copyrights => 'Array[CopyrightObject]',
125 description => 'String',
126 episodes => 'Array[SimplifiedEpisodeObject]',
127 explicit => 'Boolean',
128 external_urls => 'ExternalUrlObject',
129 href => 'String',
130 html_description => 'String',
131 id => 'String',
132 images => 'Array[ImageObject]',
133 is_externally_hosted => 'Boolean',
134 languages => 'Array[String]',
135 media_type => 'String',
136 name => 'String',
137 publisher => 'String',
138 type => 'String',
139 uri => 'String',
140 };
141  
142 0 my $obj = next::method($class, $fields, %args);
143  
144 0 return $obj;
145 }
146  
147 32 1;
« lib/Net/Async/Spotify/Object/Generated/SavedTrack.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedAlbum.pm »