spotted 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/spotted/models/audiobook_base.rb +182 -0
  5. data/lib/spotted/models/audiobook_list_response.rb +2 -174
  6. data/lib/spotted/models/audiobook_retrieve_response.rb +2 -174
  7. data/lib/spotted/models/chapter_list_response.rb +3 -183
  8. data/lib/spotted/models/chapter_retrieve_response.rb +3 -183
  9. data/lib/spotted/models/episode_object.rb +3 -166
  10. data/lib/spotted/models/me/audiobook_list_response.rb +2 -174
  11. data/lib/spotted/models/me/show_list_response.rb +3 -166
  12. data/lib/spotted/models/search_retrieve_response.rb +6 -345
  13. data/lib/spotted/models/show_base.rb +165 -0
  14. data/lib/spotted/models/show_list_response.rb +3 -163
  15. data/lib/spotted/models/show_retrieve_response.rb +2 -157
  16. data/lib/spotted/models.rb +4 -0
  17. data/lib/spotted/version.rb +1 -1
  18. data/lib/spotted.rb +2 -0
  19. data/rbi/spotted/models/audiobook_base.rbi +219 -0
  20. data/rbi/spotted/models/audiobook_list_response.rbi +4 -212
  21. data/rbi/spotted/models/audiobook_retrieve_response.rbi +4 -209
  22. data/rbi/spotted/models/chapter_list_response.rbi +4 -249
  23. data/rbi/spotted/models/chapter_retrieve_response.rbi +4 -245
  24. data/rbi/spotted/models/episode_object.rbi +4 -199
  25. data/rbi/spotted/models/me/audiobook_list_response.rbi +4 -212
  26. data/rbi/spotted/models/me/show_list_response.rbi +6 -227
  27. data/rbi/spotted/models/search_retrieve_response.rbi +6 -473
  28. data/rbi/spotted/models/show_base.rbi +194 -0
  29. data/rbi/spotted/models/show_list_response.rbi +5 -216
  30. data/rbi/spotted/models/show_retrieve_response.rbi +4 -182
  31. data/rbi/spotted/models.rbi +4 -0
  32. data/sig/spotted/models/audiobook_base.rbs +122 -0
  33. data/sig/spotted/models/audiobook_list_response.rbs +8 -111
  34. data/sig/spotted/models/audiobook_retrieve_response.rbs +8 -113
  35. data/sig/spotted/models/chapter_list_response.rbs +4 -123
  36. data/sig/spotted/models/chapter_retrieve_response.rbs +4 -123
  37. data/sig/spotted/models/episode_object.rbs +4 -111
  38. data/sig/spotted/models/me/audiobook_list_response.rbs +8 -111
  39. data/sig/spotted/models/me/show_list_response.rbs +5 -121
  40. data/sig/spotted/models/search_retrieve_response.rbs +8 -234
  41. data/sig/spotted/models/show_base.rbs +110 -0
  42. data/sig/spotted/models/show_list_response.rbs +4 -116
  43. data/sig/spotted/models/show_retrieve_response.rbs +8 -101
  44. data/sig/spotted/models.rbs +4 -0
  45. metadata +7 -1
@@ -32,8 +32,8 @@ module Spotted
32
32
  # @!attribute audiobook
33
33
  # The audiobook for which the chapter belongs.
34
34
  #
35
- # @return [Spotted::Models::ChapterListResponse::Chapter::Audiobook]
36
- required :audiobook, -> { Spotted::Models::ChapterListResponse::Chapter::Audiobook }
35
+ # @return [Spotted::Models::AudiobookBase]
36
+ required :audiobook, -> { Spotted::AudiobookBase }
37
37
 
38
38
  # @!attribute chapter_number
39
39
  # The number of the chapter
@@ -159,7 +159,7 @@ module Spotted
159
159
  #
160
160
  # @param audio_preview_url [String, nil] A URL to a 30 second preview (MP3 format) of the chapter. `null` if not availabl
161
161
  #
162
- # @param audiobook [Spotted::Models::ChapterListResponse::Chapter::Audiobook] The audiobook for which the chapter belongs.
162
+ # @param audiobook [Spotted::Models::AudiobookBase] The audiobook for which the chapter belongs.
163
163
  #
164
164
  # @param chapter_number [Integer] The number of the chapter
165
165
  #
@@ -197,186 +197,6 @@ module Spotted
197
197
  #
198
198
  # @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the chapter. Set if the supplied access token
199
199
 
200
- # @see Spotted::Models::ChapterListResponse::Chapter#audiobook
201
- class Audiobook < Spotted::Internal::Type::BaseModel
202
- # @!attribute id
203
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
204
- # audiobook.
205
- #
206
- # @return [String]
207
- required :id, String
208
-
209
- # @!attribute authors
210
- # The author(s) for the audiobook.
211
- #
212
- # @return [Array<Spotted::Models::AuthorObject>]
213
- required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
214
-
215
- # @!attribute available_markets
216
- # A list of the countries in which the audiobook can be played, identified by
217
- # their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
218
- # code.
219
- #
220
- # @return [Array<String>]
221
- required :available_markets, Spotted::Internal::Type::ArrayOf[String]
222
-
223
- # @!attribute copyrights
224
- # The copyright statements of the audiobook.
225
- #
226
- # @return [Array<Spotted::Models::CopyrightObject>]
227
- required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
228
-
229
- # @!attribute description
230
- # A description of the audiobook. HTML tags are stripped away from this field, use
231
- # `html_description` field in case HTML tags are needed.
232
- #
233
- # @return [String]
234
- required :description, String
235
-
236
- # @!attribute explicit
237
- # Whether or not the audiobook has explicit content (true = yes it does; false =
238
- # no it does not OR unknown).
239
- #
240
- # @return [Boolean]
241
- required :explicit, Spotted::Internal::Type::Boolean
242
-
243
- # @!attribute external_urls
244
- # External URLs for this audiobook.
245
- #
246
- # @return [Spotted::Models::ExternalURLObject]
247
- required :external_urls, -> { Spotted::ExternalURLObject }
248
-
249
- # @!attribute href
250
- # A link to the Web API endpoint providing full details of the audiobook.
251
- #
252
- # @return [String]
253
- required :href, String
254
-
255
- # @!attribute html_description
256
- # A description of the audiobook. This field may contain HTML tags.
257
- #
258
- # @return [String]
259
- required :html_description, String
260
-
261
- # @!attribute images
262
- # The cover art for the audiobook in various sizes, widest first.
263
- #
264
- # @return [Array<Spotted::Models::ImageObject>]
265
- required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
266
-
267
- # @!attribute languages
268
- # A list of the languages used in the audiobook, identified by their
269
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
270
- #
271
- # @return [Array<String>]
272
- required :languages, Spotted::Internal::Type::ArrayOf[String]
273
-
274
- # @!attribute media_type
275
- # The media type of the audiobook.
276
- #
277
- # @return [String]
278
- required :media_type, String
279
-
280
- # @!attribute name
281
- # The name of the audiobook.
282
- #
283
- # @return [String]
284
- required :name, String
285
-
286
- # @!attribute narrators
287
- # The narrator(s) for the audiobook.
288
- #
289
- # @return [Array<Spotted::Models::NarratorObject>]
290
- required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
291
-
292
- # @!attribute publisher
293
- # The publisher of the audiobook.
294
- #
295
- # @return [String]
296
- required :publisher, String
297
-
298
- # @!attribute total_chapters
299
- # The number of chapters in this audiobook.
300
- #
301
- # @return [Integer]
302
- required :total_chapters, Integer
303
-
304
- # @!attribute type
305
- # The object type.
306
- #
307
- # @return [Symbol, Spotted::Models::ChapterListResponse::Chapter::Audiobook::Type]
308
- required :type, enum: -> { Spotted::Models::ChapterListResponse::Chapter::Audiobook::Type }
309
-
310
- # @!attribute uri
311
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
312
- # audiobook.
313
- #
314
- # @return [String]
315
- required :uri, String
316
-
317
- # @!attribute edition
318
- # The edition of the audiobook.
319
- #
320
- # @return [String, nil]
321
- optional :edition, String
322
-
323
- # @!method initialize(id:, authors:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
324
- # Some parameter documentations has been truncated, see
325
- # {Spotted::Models::ChapterListResponse::Chapter::Audiobook} for more details.
326
- #
327
- # The audiobook for which the chapter belongs.
328
- #
329
- # @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
330
- #
331
- # @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
332
- #
333
- # @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
334
- #
335
- # @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
336
- #
337
- # @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
338
- #
339
- # @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
340
- #
341
- # @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
342
- #
343
- # @param href [String] A link to the Web API endpoint providing full details of the audiobook.
344
- #
345
- # @param html_description [String] A description of the audiobook. This field may contain HTML tags.
346
- #
347
- # @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
348
- #
349
- # @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
350
- #
351
- # @param media_type [String] The media type of the audiobook.
352
- #
353
- # @param name [String] The name of the audiobook.
354
- #
355
- # @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
356
- #
357
- # @param publisher [String] The publisher of the audiobook.
358
- #
359
- # @param total_chapters [Integer] The number of chapters in this audiobook.
360
- #
361
- # @param type [Symbol, Spotted::Models::ChapterListResponse::Chapter::Audiobook::Type] The object type.
362
- #
363
- # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
364
- #
365
- # @param edition [String] The edition of the audiobook.
366
-
367
- # The object type.
368
- #
369
- # @see Spotted::Models::ChapterListResponse::Chapter::Audiobook#type
370
- module Type
371
- extend Spotted::Internal::Type::Enum
372
-
373
- AUDIOBOOK = :audiobook
374
-
375
- # @!method self.values
376
- # @return [Array<Symbol>]
377
- end
378
- end
379
-
380
200
  # The precision with which `release_date` value is known.
381
201
  #
382
202
  # @see Spotted::Models::ChapterListResponse::Chapter#release_date_precision
@@ -23,8 +23,8 @@ module Spotted
23
23
  # @!attribute audiobook
24
24
  # The audiobook for which the chapter belongs.
25
25
  #
26
- # @return [Spotted::Models::ChapterRetrieveResponse::Audiobook]
27
- required :audiobook, -> { Spotted::Models::ChapterRetrieveResponse::Audiobook }
26
+ # @return [Spotted::Models::AudiobookBase]
27
+ required :audiobook, -> { Spotted::AudiobookBase }
28
28
 
29
29
  # @!attribute chapter_number
30
30
  # The number of the chapter
@@ -150,7 +150,7 @@ module Spotted
150
150
  #
151
151
  # @param audio_preview_url [String, nil] A URL to a 30 second preview (MP3 format) of the chapter. `null` if not availabl
152
152
  #
153
- # @param audiobook [Spotted::Models::ChapterRetrieveResponse::Audiobook] The audiobook for which the chapter belongs.
153
+ # @param audiobook [Spotted::Models::AudiobookBase] The audiobook for which the chapter belongs.
154
154
  #
155
155
  # @param chapter_number [Integer] The number of the chapter
156
156
  #
@@ -188,186 +188,6 @@ module Spotted
188
188
  #
189
189
  # @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the chapter. Set if the supplied access token
190
190
 
191
- # @see Spotted::Models::ChapterRetrieveResponse#audiobook
192
- class Audiobook < Spotted::Internal::Type::BaseModel
193
- # @!attribute id
194
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
195
- # audiobook.
196
- #
197
- # @return [String]
198
- required :id, String
199
-
200
- # @!attribute authors
201
- # The author(s) for the audiobook.
202
- #
203
- # @return [Array<Spotted::Models::AuthorObject>]
204
- required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
205
-
206
- # @!attribute available_markets
207
- # A list of the countries in which the audiobook can be played, identified by
208
- # their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
209
- # code.
210
- #
211
- # @return [Array<String>]
212
- required :available_markets, Spotted::Internal::Type::ArrayOf[String]
213
-
214
- # @!attribute copyrights
215
- # The copyright statements of the audiobook.
216
- #
217
- # @return [Array<Spotted::Models::CopyrightObject>]
218
- required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
219
-
220
- # @!attribute description
221
- # A description of the audiobook. HTML tags are stripped away from this field, use
222
- # `html_description` field in case HTML tags are needed.
223
- #
224
- # @return [String]
225
- required :description, String
226
-
227
- # @!attribute explicit
228
- # Whether or not the audiobook has explicit content (true = yes it does; false =
229
- # no it does not OR unknown).
230
- #
231
- # @return [Boolean]
232
- required :explicit, Spotted::Internal::Type::Boolean
233
-
234
- # @!attribute external_urls
235
- # External URLs for this audiobook.
236
- #
237
- # @return [Spotted::Models::ExternalURLObject]
238
- required :external_urls, -> { Spotted::ExternalURLObject }
239
-
240
- # @!attribute href
241
- # A link to the Web API endpoint providing full details of the audiobook.
242
- #
243
- # @return [String]
244
- required :href, String
245
-
246
- # @!attribute html_description
247
- # A description of the audiobook. This field may contain HTML tags.
248
- #
249
- # @return [String]
250
- required :html_description, String
251
-
252
- # @!attribute images
253
- # The cover art for the audiobook in various sizes, widest first.
254
- #
255
- # @return [Array<Spotted::Models::ImageObject>]
256
- required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
257
-
258
- # @!attribute languages
259
- # A list of the languages used in the audiobook, identified by their
260
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
261
- #
262
- # @return [Array<String>]
263
- required :languages, Spotted::Internal::Type::ArrayOf[String]
264
-
265
- # @!attribute media_type
266
- # The media type of the audiobook.
267
- #
268
- # @return [String]
269
- required :media_type, String
270
-
271
- # @!attribute name
272
- # The name of the audiobook.
273
- #
274
- # @return [String]
275
- required :name, String
276
-
277
- # @!attribute narrators
278
- # The narrator(s) for the audiobook.
279
- #
280
- # @return [Array<Spotted::Models::NarratorObject>]
281
- required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
282
-
283
- # @!attribute publisher
284
- # The publisher of the audiobook.
285
- #
286
- # @return [String]
287
- required :publisher, String
288
-
289
- # @!attribute total_chapters
290
- # The number of chapters in this audiobook.
291
- #
292
- # @return [Integer]
293
- required :total_chapters, Integer
294
-
295
- # @!attribute type
296
- # The object type.
297
- #
298
- # @return [Symbol, Spotted::Models::ChapterRetrieveResponse::Audiobook::Type]
299
- required :type, enum: -> { Spotted::Models::ChapterRetrieveResponse::Audiobook::Type }
300
-
301
- # @!attribute uri
302
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
303
- # audiobook.
304
- #
305
- # @return [String]
306
- required :uri, String
307
-
308
- # @!attribute edition
309
- # The edition of the audiobook.
310
- #
311
- # @return [String, nil]
312
- optional :edition, String
313
-
314
- # @!method initialize(id:, authors:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
315
- # Some parameter documentations has been truncated, see
316
- # {Spotted::Models::ChapterRetrieveResponse::Audiobook} for more details.
317
- #
318
- # The audiobook for which the chapter belongs.
319
- #
320
- # @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
321
- #
322
- # @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
323
- #
324
- # @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
325
- #
326
- # @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
327
- #
328
- # @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
329
- #
330
- # @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
331
- #
332
- # @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
333
- #
334
- # @param href [String] A link to the Web API endpoint providing full details of the audiobook.
335
- #
336
- # @param html_description [String] A description of the audiobook. This field may contain HTML tags.
337
- #
338
- # @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
339
- #
340
- # @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
341
- #
342
- # @param media_type [String] The media type of the audiobook.
343
- #
344
- # @param name [String] The name of the audiobook.
345
- #
346
- # @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
347
- #
348
- # @param publisher [String] The publisher of the audiobook.
349
- #
350
- # @param total_chapters [Integer] The number of chapters in this audiobook.
351
- #
352
- # @param type [Symbol, Spotted::Models::ChapterRetrieveResponse::Audiobook::Type] The object type.
353
- #
354
- # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
355
- #
356
- # @param edition [String] The edition of the audiobook.
357
-
358
- # The object type.
359
- #
360
- # @see Spotted::Models::ChapterRetrieveResponse::Audiobook#type
361
- module Type
362
- extend Spotted::Internal::Type::Enum
363
-
364
- AUDIOBOOK = :audiobook
365
-
366
- # @!method self.values
367
- # @return [Array<Symbol>]
368
- end
369
- end
370
-
371
191
  # The precision with which `release_date` value is known.
372
192
  #
373
193
  # @see Spotted::Models::ChapterRetrieveResponse#release_date_precision
@@ -104,8 +104,8 @@ module Spotted
104
104
  # @!attribute show
105
105
  # The show on which the episode belongs.
106
106
  #
107
- # @return [Spotted::Models::EpisodeObject::Show]
108
- required :show, -> { Spotted::EpisodeObject::Show }
107
+ # @return [Spotted::Models::ShowBase]
108
+ required :show, -> { Spotted::ShowBase }
109
109
 
110
110
  # @!attribute type
111
111
  # The object type.
@@ -177,7 +177,7 @@ module Spotted
177
177
  #
178
178
  # @param release_date_precision [Symbol, Spotted::Models::EpisodeObject::ReleaseDatePrecision] The precision with which `release_date` value is known.
179
179
  #
180
- # @param show [Spotted::Models::EpisodeObject::Show] The show on which the episode belongs.
180
+ # @param show [Spotted::Models::ShowBase] The show on which the episode belongs.
181
181
  #
182
182
  # @param type [Symbol, Spotted::Models::EpisodeObject::Type] The object type.
183
183
  #
@@ -203,169 +203,6 @@ module Spotted
203
203
  # @return [Array<Symbol>]
204
204
  end
205
205
 
206
- # @see Spotted::Models::EpisodeObject#show
207
- class Show < Spotted::Internal::Type::BaseModel
208
- # @!attribute id
209
- # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
210
- #
211
- # @return [String]
212
- required :id, String
213
-
214
- # @!attribute available_markets
215
- # A list of the countries in which the show can be played, identified by their
216
- # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
217
- #
218
- # @return [Array<String>]
219
- required :available_markets, Spotted::Internal::Type::ArrayOf[String]
220
-
221
- # @!attribute copyrights
222
- # The copyright statements of the show.
223
- #
224
- # @return [Array<Spotted::Models::CopyrightObject>]
225
- required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
226
-
227
- # @!attribute description
228
- # A description of the show. HTML tags are stripped away from this field, use
229
- # `html_description` field in case HTML tags are needed.
230
- #
231
- # @return [String]
232
- required :description, String
233
-
234
- # @!attribute explicit
235
- # Whether or not the show has explicit content (true = yes it does; false = no it
236
- # does not OR unknown).
237
- #
238
- # @return [Boolean]
239
- required :explicit, Spotted::Internal::Type::Boolean
240
-
241
- # @!attribute external_urls
242
- # External URLs for this show.
243
- #
244
- # @return [Spotted::Models::ExternalURLObject]
245
- required :external_urls, -> { Spotted::ExternalURLObject }
246
-
247
- # @!attribute href
248
- # A link to the Web API endpoint providing full details of the show.
249
- #
250
- # @return [String]
251
- required :href, String
252
-
253
- # @!attribute html_description
254
- # A description of the show. This field may contain HTML tags.
255
- #
256
- # @return [String]
257
- required :html_description, String
258
-
259
- # @!attribute images
260
- # The cover art for the show in various sizes, widest first.
261
- #
262
- # @return [Array<Spotted::Models::ImageObject>]
263
- required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
264
-
265
- # @!attribute is_externally_hosted
266
- # True if all of the shows episodes are hosted outside of Spotify's CDN. This
267
- # field might be `null` in some cases.
268
- #
269
- # @return [Boolean]
270
- required :is_externally_hosted, Spotted::Internal::Type::Boolean
271
-
272
- # @!attribute languages
273
- # A list of the languages used in the show, identified by their
274
- # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
275
- #
276
- # @return [Array<String>]
277
- required :languages, Spotted::Internal::Type::ArrayOf[String]
278
-
279
- # @!attribute media_type
280
- # The media type of the show.
281
- #
282
- # @return [String]
283
- required :media_type, String
284
-
285
- # @!attribute name
286
- # The name of the episode.
287
- #
288
- # @return [String]
289
- required :name, String
290
-
291
- # @!attribute publisher
292
- # The publisher of the show.
293
- #
294
- # @return [String]
295
- required :publisher, String
296
-
297
- # @!attribute total_episodes
298
- # The total number of episodes in the show.
299
- #
300
- # @return [Integer]
301
- required :total_episodes, Integer
302
-
303
- # @!attribute type
304
- # The object type.
305
- #
306
- # @return [Symbol, Spotted::Models::EpisodeObject::Show::Type]
307
- required :type, enum: -> { Spotted::EpisodeObject::Show::Type }
308
-
309
- # @!attribute uri
310
- # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
311
- # show.
312
- #
313
- # @return [String]
314
- required :uri, String
315
-
316
- # @!method initialize(id:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, languages:, media_type:, name:, publisher:, total_episodes:, type:, uri:)
317
- # Some parameter documentations has been truncated, see
318
- # {Spotted::Models::EpisodeObject::Show} for more details.
319
- #
320
- # The show on which the episode belongs.
321
- #
322
- # @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
323
- #
324
- # @param available_markets [Array<String>] A list of the countries in which the show can be played, identified by their [IS
325
- #
326
- # @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the show.
327
- #
328
- # @param description [String] A description of the show. HTML tags are stripped away from this field, use `htm
329
- #
330
- # @param explicit [Boolean] Whether or not the show has explicit content (true = yes it does; false = no it
331
- #
332
- # @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this show.
333
- #
334
- # @param href [String] A link to the Web API endpoint providing full details of the show.
335
- #
336
- # @param html_description [String] A description of the show. This field may contain HTML tags.
337
- #
338
- # @param images [Array<Spotted::Models::ImageObject>] The cover art for the show in various sizes, widest first.
339
- #
340
- # @param is_externally_hosted [Boolean] True if all of the shows episodes are hosted outside of Spotify's CDN. This fiel
341
- #
342
- # @param languages [Array<String>] A list of the languages used in the show, identified by their [ISO 639](https://
343
- #
344
- # @param media_type [String] The media type of the show.
345
- #
346
- # @param name [String] The name of the episode.
347
- #
348
- # @param publisher [String] The publisher of the show.
349
- #
350
- # @param total_episodes [Integer] The total number of episodes in the show.
351
- #
352
- # @param type [Symbol, Spotted::Models::EpisodeObject::Show::Type] The object type.
353
- #
354
- # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the show
355
-
356
- # The object type.
357
- #
358
- # @see Spotted::Models::EpisodeObject::Show#type
359
- module Type
360
- extend Spotted::Internal::Type::Enum
361
-
362
- SHOW = :show
363
-
364
- # @!method self.values
365
- # @return [Array<Symbol>]
366
- end
367
- end
368
-
369
206
  # The object type.
370
207
  #
371
208
  # @see Spotted::Models::EpisodeObject#type