Class: Spotted::Models::AudiobookBase
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::AudiobookBase
- Defined in:
- lib/spotted/models/audiobook_base.rb
Direct Known Subclasses
Spotted::Models::AudiobookListResponse::Audiobook, AudiobookRetrieveResponse, Me::AudiobookListResponse::Audiobook
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#authors ⇒ Array<Spotted::Models::AuthorObject>
The author(s) for the audiobook.
-
#available_markets ⇒ Array<String>
A list of the countries in which the audiobook can be played, identified by their [ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
-
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>
The copyright statements of the audiobook.
-
#description ⇒ String
A description of the audiobook.
-
#edition ⇒ String?
The edition of the audiobook.
-
#explicit ⇒ Boolean
Whether or not the audiobook has explicit content (true = yes it does; false = no it does not OR unknown).
-
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this audiobook.
-
#href ⇒ String
A link to the Web API endpoint providing full details of the audiobook.
-
#html_description ⇒ String
A description of the audiobook.
-
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.
-
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the audiobook in various sizes, widest first.
-
#languages ⇒ Array<String>
A list of the languages used in the audiobook, identified by their [ISO 639](en.wikipedia.org/wiki/ISO_639) code.
-
#media_type ⇒ String
The media type of the audiobook.
-
#name ⇒ String
The name of the audiobook.
-
#narrators ⇒ Array<Spotted::Models::NarratorObject>
The narrator(s) for the audiobook.
-
#publisher ⇒ String
The publisher of the audiobook.
-
#total_chapters ⇒ Integer
The number of chapters in this audiobook.
-
#type ⇒ Symbol, Spotted::Models::AudiobookBase::Type
The object type.
-
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.
Instance Method Summary collapse
-
#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) ⇒ Object
constructor
Some parameter documentations has been truncated, see AudiobookBase 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: , authors: , available_markets: , copyrights: , description: , explicit: , external_urls: , href: , html_description: , images: , languages: , media_type: , name: , narrators: , publisher: , total_chapters: , type: , uri: , edition: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::AudiobookBase for more details.
|
|
# File 'lib/spotted/models/audiobook_base.rb', line 127
|
Instance Attribute Details
#authors ⇒ Array<Spotted::Models::AuthorObject>
The author(s) for the audiobook.
17 |
# File 'lib/spotted/models/audiobook_base.rb', line 17 required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] } |
#available_markets ⇒ Array<String>
A list of the countries in which the audiobook can be played, identified by their [ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
25 |
# File 'lib/spotted/models/audiobook_base.rb', line 25 required :available_markets, Spotted::Internal::Type::ArrayOf[String] |
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>
The copyright statements of the audiobook.
31 |
# File 'lib/spotted/models/audiobook_base.rb', line 31 required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] } |
#description ⇒ String
A description of the audiobook. HTML tags are stripped away from this field, use ‘html_description` field in case HTML tags are needed.
38 |
# File 'lib/spotted/models/audiobook_base.rb', line 38 required :description, String |
#edition ⇒ String?
The edition of the audiobook.
125 |
# File 'lib/spotted/models/audiobook_base.rb', line 125 optional :edition, String |
#explicit ⇒ Boolean
Whether or not the audiobook has explicit content (true = yes it does; false = no it does not OR unknown).
45 |
# File 'lib/spotted/models/audiobook_base.rb', line 45 required :explicit, Spotted::Internal::Type::Boolean |
#external_urls ⇒ Spotted::Models::ExternalURLObject
External URLs for this audiobook.
51 |
# File 'lib/spotted/models/audiobook_base.rb', line 51 required :external_urls, -> { Spotted::ExternalURLObject } |
#href ⇒ String
A link to the Web API endpoint providing full details of the audiobook.
57 |
# File 'lib/spotted/models/audiobook_base.rb', line 57 required :href, String |
#html_description ⇒ String
A description of the audiobook. This field may contain HTML tags.
63 |
# File 'lib/spotted/models/audiobook_base.rb', line 63 required :html_description, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.
11 |
# File 'lib/spotted/models/audiobook_base.rb', line 11 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the audiobook in various sizes, widest first.
69 |
# File 'lib/spotted/models/audiobook_base.rb', line 69 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#languages ⇒ Array<String>
A list of the languages used in the audiobook, identified by their [ISO 639](en.wikipedia.org/wiki/ISO_639) code.
76 |
# File 'lib/spotted/models/audiobook_base.rb', line 76 required :languages, Spotted::Internal::Type::ArrayOf[String] |
#media_type ⇒ String
The media type of the audiobook.
82 |
# File 'lib/spotted/models/audiobook_base.rb', line 82 required :media_type, String |
#name ⇒ String
The name of the audiobook.
88 |
# File 'lib/spotted/models/audiobook_base.rb', line 88 required :name, String |
#narrators ⇒ Array<Spotted::Models::NarratorObject>
The narrator(s) for the audiobook.
94 |
# File 'lib/spotted/models/audiobook_base.rb', line 94 required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] } |
#publisher ⇒ String
The publisher of the audiobook.
100 |
# File 'lib/spotted/models/audiobook_base.rb', line 100 required :publisher, String |
#total_chapters ⇒ Integer
The number of chapters in this audiobook.
106 |
# File 'lib/spotted/models/audiobook_base.rb', line 106 required :total_chapters, Integer |
#type ⇒ Symbol, Spotted::Models::AudiobookBase::Type
The object type.
112 |
# File 'lib/spotted/models/audiobook_base.rb', line 112 required :type, enum: -> { Spotted::AudiobookBase::Type } |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.
119 |
# File 'lib/spotted/models/audiobook_base.rb', line 119 required :uri, String |