Class: Spotted::Models::ArtistListAlbumsResponse

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

Overview

Defined Under Namespace

Modules: AlbumGroup, AlbumType, ReleaseDatePrecision, Type

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_group: , album_type: , artists: , available_markets: , external_urls: , href: , images: , name: , release_date: , release_date_precision: , total_tracks: , type: , uri: , restrictions: nil) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::ArtistListAlbumsResponse for more details.

Parameters:

  • id (String) (defaults to: )

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

  • album_group (Symbol, Spotted::Models::ArtistListAlbumsResponse::AlbumGroup) (defaults to: )

    This field describes the relationship between the artist and the album.

  • album_type (Symbol, Spotted::Models::ArtistListAlbumsResponse::AlbumType) (defaults to: )

    The type of the album.

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

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

  • 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::ArtistListAlbumsResponse::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::ArtistListAlbumsResponse::Type) (defaults to: )

    The object type.

  • uri (String) (defaults to: )

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

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

    Included in the response when a content restriction is applied.



# File 'lib/spotted/models/artist_list_albums_response.rb', line 105

Instance Attribute Details

#album_groupSymbol, Spotted::Models::ArtistListAlbumsResponse::AlbumGroup

This field describes the relationship between the artist and the album.



18
# File 'lib/spotted/models/artist_list_albums_response.rb', line 18

required :album_group, enum: -> { Spotted::Models::ArtistListAlbumsResponse::AlbumGroup }

#album_typeSymbol, Spotted::Models::ArtistListAlbumsResponse::AlbumType

The type of the album.



24
# File 'lib/spotted/models/artist_list_albums_response.rb', line 24

required :album_type, enum: -> { Spotted::Models::ArtistListAlbumsResponse::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.



31
# File 'lib/spotted/models/artist_list_albums_response.rb', line 31

required :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>)


40
# File 'lib/spotted/models/artist_list_albums_response.rb', line 40

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

#external_urlsSpotted::Models::ExternalURLObject

Known external URLs for this album.



46
# File 'lib/spotted/models/artist_list_albums_response.rb', line 46

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

#hrefString

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

Returns:

  • (String)


52
# File 'lib/spotted/models/artist_list_albums_response.rb', line 52

required :href, String

#idString

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

Returns:

  • (String)


12
# File 'lib/spotted/models/artist_list_albums_response.rb', line 12

required :id, String

#imagesArray<Spotted::Models::ImageObject>

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

Returns:



58
# File 'lib/spotted/models/artist_list_albums_response.rb', line 58

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

#nameString

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

Returns:

  • (String)


65
# File 'lib/spotted/models/artist_list_albums_response.rb', line 65

required :name, String

#release_dateString

The date the album was first released.

Returns:

  • (String)


71
# File 'lib/spotted/models/artist_list_albums_response.rb', line 71

required :release_date, String

#release_date_precisionSymbol, Spotted::Models::ArtistListAlbumsResponse::ReleaseDatePrecision

The precision with which ‘release_date` value is known.



77
78
# File 'lib/spotted/models/artist_list_albums_response.rb', line 77

required :release_date_precision,
enum: -> { Spotted::Models::ArtistListAlbumsResponse::ReleaseDatePrecision }

#restrictionsSpotted::Models::AlbumRestrictionObject?

Included in the response when a content restriction is applied.



103
# File 'lib/spotted/models/artist_list_albums_response.rb', line 103

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

#total_tracksInteger

The number of tracks in the album.

Returns:

  • (Integer)


84
# File 'lib/spotted/models/artist_list_albums_response.rb', line 84

required :total_tracks, Integer

#typeSymbol, Spotted::Models::ArtistListAlbumsResponse::Type

The object type.



90
# File 'lib/spotted/models/artist_list_albums_response.rb', line 90

required :type, enum: -> { Spotted::Models::ArtistListAlbumsResponse::Type }

#uriString

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

Returns:

  • (String)


97
# File 'lib/spotted/models/artist_list_albums_response.rb', line 97

required :uri, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/spotted/models/artist_list_albums_response.rb', line 150