Class: Spotted::Models::AlbumRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::AlbumRetrieveResponse
- Defined in:
- lib/spotted/models/album_retrieve_response.rb
Overview
Defined Under Namespace
Modules: AlbumType, ReleaseDatePrecision Classes: Tracks
Instance Attribute Summary collapse
-
#album_type ⇒ Symbol, Spotted::Models::AlbumRetrieveResponse::AlbumType
The type of the album.
-
#artists ⇒ Array<Spotted::Models::SimplifiedArtistObject>?
The artists of the album.
- #available_markets ⇒ Array<String> deprecated Deprecated.
-
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>?
The copyright statements of the album.
- #external_ids ⇒ Spotted::Models::ExternalIDObject? deprecated Deprecated.
-
#external_urls ⇒ Spotted::Models::ExternalURLObject
Known external URLs for this album.
- #genres ⇒ Array<String>? deprecated Deprecated.
-
#href ⇒ String
A link to the Web API endpoint providing full details of the album.
-
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the album.
-
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the album in various sizes, widest first.
- #label ⇒ String? deprecated Deprecated.
-
#name ⇒ String
The name of the album.
- #popularity ⇒ Integer? deprecated Deprecated.
-
#published ⇒ Boolean?
The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant.
-
#release_date ⇒ String
The date the album was first released.
-
#release_date_precision ⇒ Symbol, Spotted::Models::AlbumRetrieveResponse::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
-
#restrictions ⇒ Spotted::Models::AlbumRestrictionObject?
Included in the response when a content restriction is applied.
-
#total_tracks ⇒ Integer
The number of tracks in the album.
-
#tracks ⇒ Spotted::Models::AlbumRetrieveResponse::Tracks?
The tracks of the album.
-
#type ⇒ Symbol, :album
The object type.
-
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the album.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, album_type:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, published: nil, restrictions: nil, tracks: nil, type: :album) ⇒ Object
constructor
Some parameter documentations has been truncated, see AlbumRetrieveResponse 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:, album_type:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, published: nil, restrictions: nil, tracks: nil, type: :album) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::AlbumRetrieveResponse for more details.
|
|
# File 'lib/spotted/models/album_retrieve_response.rb', line 156
|
Instance Attribute Details
#album_type ⇒ Symbol, Spotted::Models::AlbumRetrieveResponse::AlbumType
The type of the album.
18 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 18 required :album_type, enum: -> { Spotted::Models::AlbumRetrieveResponse::AlbumType } |
#artists ⇒ Array<Spotted::Models::SimplifiedArtistObject>?
The artists of the album. Each artist object includes a link in ‘href` to more detailed information about the artist.
93 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 93 optional :artists, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedArtistObject] } |
#available_markets ⇒ Array<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._
29 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 29 required :available_markets, Spotted::Internal::Type::ArrayOf[String] |
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>?
The copyright statements of the album.
99 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 99 optional :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] } |
#external_ids ⇒ Spotted::Models::ExternalIDObject?
Known external IDs for the album.
107 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 107 optional :external_ids, -> { Spotted::ExternalIDObject } |
#external_urls ⇒ Spotted::Models::ExternalURLObject
Known external URLs for this album.
35 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 35 required :external_urls, -> { Spotted::ExternalURLObject } |
#genres ⇒ Array<String>?
Deprecated The array is always empty.
115 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 115 optional :genres, Spotted::Internal::Type::ArrayOf[String] |
#href ⇒ String
A link to the Web API endpoint providing full details of the album.
41 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 41 required :href, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the album.
12 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 12 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the album in various sizes, widest first.
47 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 47 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#label ⇒ String?
The label associated with the album.
123 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 123 optional :label, String |
#name ⇒ String
The name of the album. In case of an album takedown, the value may be an empty string.
54 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 54 required :name, String |
#popularity ⇒ Integer?
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular.
132 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 132 optional :popularity, Integer |
#published ⇒ Boolean?
The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)
142 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 142 optional :published, Spotted::Internal::Type::Boolean |
#release_date ⇒ String
The date the album was first released.
60 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 60 required :release_date, String |
#release_date_precision ⇒ Symbol, Spotted::Models::AlbumRetrieveResponse::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
66 67 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 66 required :release_date_precision, enum: -> { Spotted::Models::AlbumRetrieveResponse::ReleaseDatePrecision } |
#restrictions ⇒ Spotted::Models::AlbumRestrictionObject?
Included in the response when a content restriction is applied.
148 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 148 optional :restrictions, -> { Spotted::AlbumRestrictionObject } |
#total_tracks ⇒ Integer
The number of tracks in the album.
73 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 73 required :total_tracks, Integer |
#tracks ⇒ Spotted::Models::AlbumRetrieveResponse::Tracks?
The tracks of the album.
154 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 154 optional :tracks, -> { Spotted::Models::AlbumRetrieveResponse::Tracks } |
#type ⇒ Symbol, :album
The object type.
79 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 79 required :type, const: :album |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the album.
86 |
# File 'lib/spotted/models/album_retrieve_response.rb', line 86 required :uri, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/spotted/models/album_retrieve_response.rb', line 212
|