Class: Spotted::Models::EpisodeObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::EpisodeObject
- Defined in:
- lib/spotted/models/episode_object.rb
Defined Under Namespace
Modules: ReleaseDatePrecision, Type
Instance Attribute Summary collapse
- #audio_preview_url ⇒ String? deprecated Deprecated.
-
#description ⇒ String
A description of the episode.
-
#duration_ms ⇒ Integer
The episode length in milliseconds.
-
#explicit ⇒ Boolean
Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).
-
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this episode.
-
#href ⇒ String
A link to the Web API endpoint providing full details of the episode.
-
#html_description ⇒ String
A description of the episode.
-
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the episode.
-
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the episode in various sizes, widest first.
-
#is_externally_hosted ⇒ Boolean
True if the episode is hosted outside of Spotify’s CDN.
-
#is_playable ⇒ Boolean
True if the episode is playable in the given market.
- #language ⇒ String? deprecated Deprecated.
-
#languages ⇒ Array<String>
A list of the languages used in the episode, identified by their [ISO 639-1](en.wikipedia.org/wiki/ISO_639) code.
-
#name ⇒ String
The name of the episode.
-
#release_date ⇒ String
The date the episode was first released, for example ‘“1981-12-15”`.
-
#release_date_precision ⇒ Symbol, Spotted::Models::EpisodeObject::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
-
#restrictions ⇒ Spotted::Models::EpisodeRestrictionObject?
Included in the response when a content restriction is applied.
-
#resume_point ⇒ Spotted::Models::ResumePointObject?
The user’s most recent position in the episode.
-
#show ⇒ Spotted::Models::ShowBase
The show on which the episode belongs.
-
#type ⇒ Symbol, Spotted::Models::EpisodeObject::Type
The object type.
-
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the episode.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , audio_preview_url: , description: , duration_ms: , explicit: , external_urls: , href: , html_description: , images: , is_externally_hosted: , is_playable: , languages: , name: , release_date: , release_date_precision: , show: , type: , uri: , language: nil, restrictions: nil, resume_point: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see EpisodeObject for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , audio_preview_url: , description: , duration_ms: , explicit: , external_urls: , href: , html_description: , images: , is_externally_hosted: , is_playable: , languages: , name: , release_date: , release_date_precision: , show: , type: , uri: , language: nil, restrictions: nil, resume_point: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::EpisodeObject for more details.
|
|
# File 'lib/spotted/models/episode_object.rb', line 146
|
Instance Attribute Details
#audio_preview_url ⇒ String?
A URL to a 30 second preview (MP3 format) of the episode. ‘null` if not available.
20 |
# File 'lib/spotted/models/episode_object.rb', line 20 required :audio_preview_url, String, nil?: true |
#description ⇒ String
A description of the episode. HTML tags are stripped away from this field, use ‘html_description` field in case HTML tags are needed.
27 |
# File 'lib/spotted/models/episode_object.rb', line 27 required :description, String |
#duration_ms ⇒ Integer
The episode length in milliseconds.
33 |
# File 'lib/spotted/models/episode_object.rb', line 33 required :duration_ms, Integer |
#explicit ⇒ Boolean
Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).
40 |
# File 'lib/spotted/models/episode_object.rb', line 40 required :explicit, Spotted::Internal::Type::Boolean |
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this episode.
46 |
# File 'lib/spotted/models/episode_object.rb', line 46 required :external_urls, -> { Spotted::ExternalURLObject } |
#href ⇒ String
A link to the Web API endpoint providing full details of the episode.
52 |
# File 'lib/spotted/models/episode_object.rb', line 52 required :href, String |
#html_description ⇒ String
A description of the episode. This field may contain HTML tags.
58 |
# File 'lib/spotted/models/episode_object.rb', line 58 required :html_description, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the episode.
11 |
# File 'lib/spotted/models/episode_object.rb', line 11 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the episode in various sizes, widest first.
64 |
# File 'lib/spotted/models/episode_object.rb', line 64 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#is_externally_hosted ⇒ Boolean
True if the episode is hosted outside of Spotify’s CDN.
70 |
# File 'lib/spotted/models/episode_object.rb', line 70 required :is_externally_hosted, Spotted::Internal::Type::Boolean |
#is_playable ⇒ Boolean
True if the episode is playable in the given market. Otherwise false.
76 |
# File 'lib/spotted/models/episode_object.rb', line 76 required :is_playable, Spotted::Internal::Type::Boolean |
#language ⇒ String?
The language used in the episode, identified by a [ISO 639](en.wikipedia.org/wiki/ISO_639) code. This field is deprecated and might be removed in the future. Please use the ‘languages` field instead.
131 |
# File 'lib/spotted/models/episode_object.rb', line 131 optional :language, String |
#languages ⇒ Array<String>
A list of the languages used in the episode, identified by their [ISO 639-1](en.wikipedia.org/wiki/ISO_639) code.
83 |
# File 'lib/spotted/models/episode_object.rb', line 83 required :languages, Spotted::Internal::Type::ArrayOf[String] |
#name ⇒ String
The name of the episode.
89 |
# File 'lib/spotted/models/episode_object.rb', line 89 required :name, String |
#release_date ⇒ String
The date the episode was first released, for example ‘“1981-12-15”`. Depending on the precision, it might be shown as `“1981”` or `“1981-12”`.
96 |
# File 'lib/spotted/models/episode_object.rb', line 96 required :release_date, String |
#release_date_precision ⇒ Symbol, Spotted::Models::EpisodeObject::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
102 |
# File 'lib/spotted/models/episode_object.rb', line 102 required :release_date_precision, enum: -> { Spotted::EpisodeObject::ReleaseDatePrecision } |
#restrictions ⇒ Spotted::Models::EpisodeRestrictionObject?
Included in the response when a content restriction is applied.
137 |
# File 'lib/spotted/models/episode_object.rb', line 137 optional :restrictions, -> { Spotted::EpisodeRestrictionObject } |
#resume_point ⇒ Spotted::Models::ResumePointObject?
The user’s most recent position in the episode. Set if the supplied access token is a user token and has the scope ‘user-read-playback-position’.
144 |
# File 'lib/spotted/models/episode_object.rb', line 144 optional :resume_point, -> { Spotted::ResumePointObject } |
#show ⇒ Spotted::Models::ShowBase
The show on which the episode belongs.
108 |
# File 'lib/spotted/models/episode_object.rb', line 108 required :show, -> { Spotted::ShowBase } |
#type ⇒ Symbol, Spotted::Models::EpisodeObject::Type
The object type.
114 |
# File 'lib/spotted/models/episode_object.rb', line 114 required :type, enum: -> { Spotted::EpisodeObject::Type } |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the episode.
121 |
# File 'lib/spotted/models/episode_object.rb', line 121 required :uri, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/spotted/models/episode_object.rb', line 202
|