Class: Spotted::Models::Me::AlbumListResponse::Album

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

Overview

See Also:

Defined Under Namespace

Modules: AlbumType, ReleaseDatePrecision, Type Classes: Tracks

Instance Attribute Summary collapse

Class Method 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: , album_type: , available_markets: , external_urls: , href: , images: , name: , release_date: , release_date_precision: , total_tracks: , type: , uri: , artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, restrictions: nil, tracks: nil) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::Me::AlbumListResponse::Album for more details.

Information about the album.

Parameters:

  • id (String) (defaults to: )

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

  • album_type (Symbol, Spotted::Models::Me::AlbumListResponse::Album::AlbumType) (defaults to: )

    The type of the album.

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

    The markets in which the album is available: [ISO 3166-1 alpha-2 country codes](

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

    Known external URLs for this album.

  • href (String) (defaults to: )

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

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

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

  • name (String) (defaults to: )

    The name of the album. In case of an album takedown, the value may be an empty s

  • release_date (String) (defaults to: )

    The date the album was first released.

  • release_date_precision (Symbol, Spotted::Models::Me::AlbumListResponse::Album::ReleaseDatePrecision) (defaults to: )

    The precision with which ‘release_date` value is known.

  • total_tracks (Integer) (defaults to: )

    The number of tracks in the album.

  • type (Symbol, Spotted::Models::Me::AlbumListResponse::Album::Type) (defaults to: )

    The object type.

  • uri (String) (defaults to: )

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

  • artists (Array<Spotted::Models::SimplifiedArtistObject>) (defaults to: nil)

    The artists of the album. Each artist object includes a link in ‘href` to more d

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

    The copyright statements of the album.

  • external_ids (Spotted::Models::ExternalIDObject) (defaults to: nil)

    Known external IDs for the album.

  • genres (Array<String>) (defaults to: nil)

    Deprecated The array is always empty.

  • label (String) (defaults to: nil)

    The label associated with the album.

  • popularity (Integer) (defaults to: nil)

    The popularity of the album. The value will be between 0 and 100, with 100 being

  • restrictions (Spotted::Models::AlbumRestrictionObject) (defaults to: nil)

    Included in the response when a content restriction is applied.

  • tracks (Spotted::Models::Me::AlbumListResponse::Album::Tracks) (defaults to: nil)

    The tracks of the album.



# File 'lib/spotted/models/me/album_list_response.rb', line 165

Instance Attribute Details

#album_typeSymbol, Spotted::Models::Me::AlbumListResponse::Album::AlbumType

The type of the album.



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

required :album_type, enum: -> { Spotted::Models::Me::AlbumListResponse::Album::AlbumType }

#artistsArray<Spotted::Models::SimplifiedArtistObject>?

The artists of the album. Each artist object includes a link in ‘href` to more detailed information about the artist.



118
# File 'lib/spotted/models/me/album_list_response.rb', line 118

optional :artists, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedArtistObject] }

#available_marketsArray<String>

The markets in which the album is available: [ISO 3166-1 alpha-2 country codes](en.wikipedia.org/wiki/ISO_3166-1_alpha-2). _NOTE: an album is considered available in a market when at least 1 of its tracks is available in that market._

Returns:

  • (Array<String>)


54
# File 'lib/spotted/models/me/album_list_response.rb', line 54

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

#copyrightsArray<Spotted::Models::CopyrightObject>?

The copyright statements of the album.

Returns:



124
# File 'lib/spotted/models/me/album_list_response.rb', line 124

optional :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }

#external_idsSpotted::Models::ExternalIDObject?

Known external IDs for the album.



130
# File 'lib/spotted/models/me/album_list_response.rb', line 130

optional :external_ids, -> { Spotted::ExternalIDObject }

#external_urlsSpotted::Models::ExternalURLObject

Known external URLs for this album.



60
# File 'lib/spotted/models/me/album_list_response.rb', line 60

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

#genresArray<String>?

Deprecated.

Deprecated The array is always empty.

Returns:

  • (Array<String>, nil)


138
# File 'lib/spotted/models/me/album_list_response.rb', line 138

optional :genres, Spotted::Internal::Type::ArrayOf[String]

#hrefString

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

Returns:

  • (String)


66
# File 'lib/spotted/models/me/album_list_response.rb', line 66

required :href, String

#idString

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

Returns:

  • (String)


39
# File 'lib/spotted/models/me/album_list_response.rb', line 39

required :id, String

#imagesArray<Spotted::Models::ImageObject>

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

Returns:



72
# File 'lib/spotted/models/me/album_list_response.rb', line 72

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

#labelString?

The label associated with the album.

Returns:

  • (String, nil)


144
# File 'lib/spotted/models/me/album_list_response.rb', line 144

optional :label, String

#nameString

The name of the album. In case of an album takedown, the value may be an empty string.

Returns:

  • (String)


79
# File 'lib/spotted/models/me/album_list_response.rb', line 79

required :name, String

#popularityInteger?

The popularity of the album. The value will be between 0 and 100, with 100 being the most popular.

Returns:

  • (Integer, nil)


151
# File 'lib/spotted/models/me/album_list_response.rb', line 151

optional :popularity, Integer

#release_dateString

The date the album was first released.

Returns:

  • (String)


85
# File 'lib/spotted/models/me/album_list_response.rb', line 85

required :release_date, String

#release_date_precisionSymbol, Spotted::Models::Me::AlbumListResponse::Album::ReleaseDatePrecision

The precision with which ‘release_date` value is known.



91
92
# File 'lib/spotted/models/me/album_list_response.rb', line 91

required :release_date_precision,
enum: -> { Spotted::Models::Me::AlbumListResponse::Album::ReleaseDatePrecision }

#restrictionsSpotted::Models::AlbumRestrictionObject?

Included in the response when a content restriction is applied.



157
# File 'lib/spotted/models/me/album_list_response.rb', line 157

optional :restrictions, -> { Spotted::AlbumRestrictionObject }

#total_tracksInteger

The number of tracks in the album.

Returns:

  • (Integer)


98
# File 'lib/spotted/models/me/album_list_response.rb', line 98

required :total_tracks, Integer

#tracksSpotted::Models::Me::AlbumListResponse::Album::Tracks?

The tracks of the album.



163
# File 'lib/spotted/models/me/album_list_response.rb', line 163

optional :tracks, -> { Spotted::Models::Me::AlbumListResponse::Album::Tracks }

#typeSymbol, Spotted::Models::Me::AlbumListResponse::Album::Type

The object type.



104
# File 'lib/spotted/models/me/album_list_response.rb', line 104

required :type, enum: -> { Spotted::Models::Me::AlbumListResponse::Album::Type }

#uriString

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

Returns:

  • (String)


111
# File 'lib/spotted/models/me/album_list_response.rb', line 111

required :uri, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/spotted/models/me/album_list_response.rb', line 221