Class: Spotted::Models::Me::AlbumListResponse::Album
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::Me::AlbumListResponse::Album
- Defined in:
- lib/spotted/models/me/album_list_response.rb
Overview
Defined Under Namespace
Modules: AlbumType, ReleaseDatePrecision, Type Classes: Tracks
Instance Attribute Summary collapse
-
#album_type ⇒ Symbol, Spotted::Models::Me::AlbumListResponse::Album::AlbumType
The type of the album.
-
#artists ⇒ Array<Spotted::Models::SimplifiedArtistObject>?
The artists of the album.
-
#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).
-
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>?
The copyright statements of the album.
-
#external_ids ⇒ Spotted::Models::ExternalIDObject?
Known external IDs for the album.
-
#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?
The label associated with the album.
-
#name ⇒ String
The name of the album.
-
#popularity ⇒ Integer?
The popularity of the album.
-
#release_date ⇒ String
The date the album was first released.
-
#release_date_precision ⇒ Symbol, Spotted::Models::Me::AlbumListResponse::Album::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::Me::AlbumListResponse::Album::Tracks?
The tracks of the album.
-
#type ⇒ Symbol, Spotted::Models::Me::AlbumListResponse::Album::Type
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: , type: , uri: , artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, restrictions: nil, tracks: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Album 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: , 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.
|
|
# File 'lib/spotted/models/me/album_list_response.rb', line 165
|
Instance Attribute Details
#album_type ⇒ Symbol, 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 } |
#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.
118 |
# File 'lib/spotted/models/me/album_list_response.rb', line 118 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._
54 |
# File 'lib/spotted/models/me/album_list_response.rb', line 54 required :available_markets, Spotted::Internal::Type::ArrayOf[String] |
#copyrights ⇒ Array<Spotted::Models::CopyrightObject>?
The copyright statements of the album.
124 |
# File 'lib/spotted/models/me/album_list_response.rb', line 124 optional :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] } |
#external_ids ⇒ Spotted::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_urls ⇒ Spotted::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 } |
#genres ⇒ Array<String>?
Deprecated The array is always empty.
138 |
# File 'lib/spotted/models/me/album_list_response.rb', line 138 optional :genres, Spotted::Internal::Type::ArrayOf[String] |
#href ⇒ String
A link to the Web API endpoint providing full details of the album.
66 |
# File 'lib/spotted/models/me/album_list_response.rb', line 66 required :href, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the album.
39 |
# File 'lib/spotted/models/me/album_list_response.rb', line 39 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the album in various sizes, widest first.
72 |
# File 'lib/spotted/models/me/album_list_response.rb', line 72 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#label ⇒ String?
The label associated with the album.
144 |
# File 'lib/spotted/models/me/album_list_response.rb', line 144 optional :label, String |
#name ⇒ String
The name of the album. In case of an album takedown, the value may be an empty string.
79 |
# File 'lib/spotted/models/me/album_list_response.rb', line 79 required :name, String |
#popularity ⇒ Integer?
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular.
151 |
# File 'lib/spotted/models/me/album_list_response.rb', line 151 optional :popularity, Integer |
#release_date ⇒ String
The date the album was first released.
85 |
# File 'lib/spotted/models/me/album_list_response.rb', line 85 required :release_date, String |
#release_date_precision ⇒ Symbol, 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 } |
#restrictions ⇒ Spotted::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_tracks ⇒ Integer
The number of tracks in the album.
98 |
# File 'lib/spotted/models/me/album_list_response.rb', line 98 required :total_tracks, Integer |
#tracks ⇒ Spotted::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 } |
#type ⇒ Symbol, 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 } |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the album.
111 |
# File 'lib/spotted/models/me/album_list_response.rb', line 111 required :uri, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/spotted/models/me/album_list_response.rb', line 221
|