Class: Spotted::Models::ChapterRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::ChapterRetrieveResponse
- Defined in:
- lib/spotted/models/chapter_retrieve_response.rb
Overview
Defined Under Namespace
Modules: ReleaseDatePrecision, Type
Instance Attribute Summary collapse
- #audio_preview_url ⇒ String? deprecated Deprecated.
-
#audiobook ⇒ Spotted::Models::AudiobookBase
The audiobook for which the chapter belongs.
-
#available_markets ⇒ Array<String>?
A list of the countries in which the chapter can be played, identified by their [ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
-
#chapter_number ⇒ Integer
The number of the chapter.
-
#description ⇒ String
A description of the chapter.
-
#duration_ms ⇒ Integer
The chapter length in milliseconds.
-
#explicit ⇒ Boolean
Whether or not the chapter has explicit content (true = yes it does; false = no it does not OR unknown).
-
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this chapter.
-
#href ⇒ String
A link to the Web API endpoint providing full details of the chapter.
-
#html_description ⇒ String
A description of the chapter.
-
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the chapter.
-
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the chapter in various sizes, widest first.
-
#is_playable ⇒ Boolean
True if the chapter is playable in the given market.
-
#languages ⇒ Array<String>
A list of the languages used in the chapter, identified by their [ISO 639-1](en.wikipedia.org/wiki/ISO_639) code.
-
#name ⇒ String
The name of the chapter.
-
#release_date ⇒ String
The date the chapter was first released, for example ‘“1981-12-15”`.
-
#release_date_precision ⇒ Symbol, Spotted::Models::ChapterRetrieveResponse::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
-
#restrictions ⇒ Spotted::Models::ChapterRestrictionObject?
Included in the response when a content restriction is applied.
-
#resume_point ⇒ Spotted::Models::ResumePointObject?
The user’s most recent position in the chapter.
-
#type ⇒ Symbol, Spotted::Models::ChapterRetrieveResponse::Type
The object type.
-
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the chapter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , audio_preview_url: , audiobook: , chapter_number: , description: , duration_ms: , explicit: , external_urls: , href: , html_description: , images: , is_playable: , languages: , name: , release_date: , release_date_precision: , type: , uri: , available_markets: nil, restrictions: nil, resume_point: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ChapterRetrieveResponse 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: , audiobook: , chapter_number: , description: , duration_ms: , explicit: , external_urls: , href: , html_description: , images: , is_playable: , languages: , name: , release_date: , release_date_precision: , type: , uri: , available_markets: nil, restrictions: nil, resume_point: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::ChapterRetrieveResponse for more details.
|
|
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 145
|
Instance Attribute Details
#audio_preview_url ⇒ String?
A URL to a 30 second preview (MP3 format) of the chapter. ‘null` if not available.
21 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 21 required :audio_preview_url, String, nil?: true |
#audiobook ⇒ Spotted::Models::AudiobookBase
The audiobook for which the chapter belongs.
27 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 27 required :audiobook, -> { Spotted::AudiobookBase } |
#available_markets ⇒ Array<String>?
A list of the countries in which the chapter can be played, identified by their [ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
130 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 130 optional :available_markets, Spotted::Internal::Type::ArrayOf[String] |
#chapter_number ⇒ Integer
The number of the chapter
33 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 33 required :chapter_number, Integer |
#description ⇒ String
A description of the chapter. HTML tags are stripped away from this field, use ‘html_description` field in case HTML tags are needed.
40 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 40 required :description, String |
#duration_ms ⇒ Integer
The chapter length in milliseconds.
46 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 46 required :duration_ms, Integer |
#explicit ⇒ Boolean
Whether or not the chapter has explicit content (true = yes it does; false = no it does not OR unknown).
53 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 53 required :explicit, Spotted::Internal::Type::Boolean |
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this chapter.
59 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 59 required :external_urls, -> { Spotted::ExternalURLObject } |
#href ⇒ String
A link to the Web API endpoint providing full details of the chapter.
65 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 65 required :href, String |
#html_description ⇒ String
A description of the chapter. This field may contain HTML tags.
71 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 71 required :html_description, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the chapter.
12 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 12 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the chapter in various sizes, widest first.
77 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 77 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#is_playable ⇒ Boolean
True if the chapter is playable in the given market. Otherwise false.
83 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 83 required :is_playable, Spotted::Internal::Type::Boolean |
#languages ⇒ Array<String>
A list of the languages used in the chapter, identified by their [ISO 639-1](en.wikipedia.org/wiki/ISO_639) code.
90 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 90 required :languages, Spotted::Internal::Type::ArrayOf[String] |
#name ⇒ String
The name of the chapter.
96 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 96 required :name, String |
#release_date ⇒ String
The date the chapter was first released, for example ‘“1981-12-15”`. Depending on the precision, it might be shown as `“1981”` or `“1981-12”`.
103 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 103 required :release_date, String |
#release_date_precision ⇒ Symbol, Spotted::Models::ChapterRetrieveResponse::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
109 110 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 109 required :release_date_precision, enum: -> { Spotted::Models::ChapterRetrieveResponse::ReleaseDatePrecision } |
#restrictions ⇒ Spotted::Models::ChapterRestrictionObject?
Included in the response when a content restriction is applied.
136 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 136 optional :restrictions, -> { Spotted::ChapterRestrictionObject } |
#resume_point ⇒ Spotted::Models::ResumePointObject?
The user’s most recent position in the chapter. Set if the supplied access token is a user token and has the scope ‘user-read-playback-position’.
143 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 143 optional :resume_point, -> { Spotted::ResumePointObject } |
#type ⇒ Symbol, Spotted::Models::ChapterRetrieveResponse::Type
The object type.
116 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 116 required :type, enum: -> { Spotted::Models::ChapterRetrieveResponse::Type } |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the chapter.
123 |
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 123 required :uri, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/spotted/models/chapter_retrieve_response.rb', line 201
|