Class: Spotted::Models::AudiobookBase

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/spotted/models/audiobook_base.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • id (String) (defaults to: )

    The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio

  • authors (Array<Spotted::Models::AuthorObject>) (defaults to: )

    The author(s) for the audiobook.

  • available_markets (Array<String>) (defaults to: )

    A list of the countries in which the audiobook can be played, identified by thei

  • copyrights (Array<Spotted::Models::CopyrightObject>) (defaults to: )

    The copyright statements of the audiobook.

  • description (String) (defaults to: )

    A description of the audiobook. HTML tags are stripped away from this field, use

  • explicit (Boolean) (defaults to: )

    Whether or not the audiobook has explicit content (true = yes it does; false = n

  • external_urls (Spotted::Models::ExternalURLObject) (defaults to: )

    External URLs for this audiobook.

  • href (String) (defaults to: )

    A link to the Web API endpoint providing full details of the audiobook.

  • html_description (String) (defaults to: )

    A description of the audiobook. This field may contain HTML tags.

  • images (Array<Spotted::Models::ImageObject>) (defaults to: )

    The cover art for the audiobook in various sizes, widest first.

  • languages (Array<String>) (defaults to: )

    A list of the languages used in the audiobook, identified by their [ISO 639](htt

  • media_type (String) (defaults to: )

    The media type of the audiobook.

  • name (String) (defaults to: )

    The name of the audiobook.

  • narrators (Array<Spotted::Models::NarratorObject>) (defaults to: )

    The narrator(s) for the audiobook.

  • publisher (String) (defaults to: )

    The publisher of the audiobook.

  • total_chapters (Integer) (defaults to: )

    The number of chapters in this audiobook.

  • type (Symbol, Spotted::Models::AudiobookBase::Type) (defaults to: )

    The object type.

  • uri (String) (defaults to: )

    The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi

  • edition (String) (defaults to: nil)

    The edition of the audiobook.



# File 'lib/spotted/models/audiobook_base.rb', line 127

Instance Attribute Details

#authorsArray<Spotted::Models::AuthorObject>

The author(s) for the audiobook.

Returns:



17
# File 'lib/spotted/models/audiobook_base.rb', line 17

required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }

#available_marketsArray<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.

Returns:

  • (Array<String>)


25
# File 'lib/spotted/models/audiobook_base.rb', line 25

required :available_markets, Spotted::Internal::Type::ArrayOf[String]

#copyrightsArray<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] }

#descriptionString

A description of the audiobook. HTML tags are stripped away from this field, use ‘html_description` field in case HTML tags are needed.

Returns:

  • (String)


38
# File 'lib/spotted/models/audiobook_base.rb', line 38

required :description, String

#editionString?

The edition of the audiobook.

Returns:

  • (String, nil)


125
# File 'lib/spotted/models/audiobook_base.rb', line 125

optional :edition, String

#explicitBoolean

Whether or not the audiobook has explicit content (true = yes it does; false = no it does not OR unknown).

Returns:

  • (Boolean)


45
# File 'lib/spotted/models/audiobook_base.rb', line 45

required :explicit, Spotted::Internal::Type::Boolean

#external_urlsSpotted::Models::ExternalURLObject

External URLs for this audiobook.



51
# File 'lib/spotted/models/audiobook_base.rb', line 51

required :external_urls, -> { Spotted::ExternalURLObject }

#hrefString

A link to the Web API endpoint providing full details of the audiobook.

Returns:

  • (String)


57
# File 'lib/spotted/models/audiobook_base.rb', line 57

required :href, String

#html_descriptionString

A description of the audiobook. This field may contain HTML tags.

Returns:

  • (String)


63
# File 'lib/spotted/models/audiobook_base.rb', line 63

required :html_description, String

#idString

The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.

Returns:

  • (String)


11
# File 'lib/spotted/models/audiobook_base.rb', line 11

required :id, String

#imagesArray<Spotted::Models::ImageObject>

The cover art for the audiobook in various sizes, widest first.

Returns:



69
# File 'lib/spotted/models/audiobook_base.rb', line 69

required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }

#languagesArray<String>

A list of the languages used in the audiobook, identified by their [ISO 639](en.wikipedia.org/wiki/ISO_639) code.

Returns:

  • (Array<String>)


76
# File 'lib/spotted/models/audiobook_base.rb', line 76

required :languages, Spotted::Internal::Type::ArrayOf[String]

#media_typeString

The media type of the audiobook.

Returns:

  • (String)


82
# File 'lib/spotted/models/audiobook_base.rb', line 82

required :media_type, String

#nameString

The name of the audiobook.

Returns:

  • (String)


88
# File 'lib/spotted/models/audiobook_base.rb', line 88

required :name, String

#narratorsArray<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] }

#publisherString

The publisher of the audiobook.

Returns:

  • (String)


100
# File 'lib/spotted/models/audiobook_base.rb', line 100

required :publisher, String

#total_chaptersInteger

The number of chapters in this audiobook.

Returns:

  • (Integer)


106
# File 'lib/spotted/models/audiobook_base.rb', line 106

required :total_chapters, Integer

#typeSymbol, Spotted::Models::AudiobookBase::Type

The object type.



112
# File 'lib/spotted/models/audiobook_base.rb', line 112

required :type, enum: -> { Spotted::AudiobookBase::Type }

#uriString

The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audiobook.

Returns:

  • (String)


119
# File 'lib/spotted/models/audiobook_base.rb', line 119

required :uri, String