Class: Spotted::Models::TrackObject::Album
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::TrackObject::Album
- Defined in:
- lib/spotted/models/track_object.rb
Overview
Defined Under Namespace
Modules: AlbumType, ReleaseDatePrecision, Type
Instance Attribute Summary collapse
-
#album_type ⇒ Symbol, Spotted::Models::TrackObject::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).
-
#external_urls ⇒ Spotted::Models::ExternalURLObject
Known external URLs for this album.
-
#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.
-
#name ⇒ String
The name of the album.
-
#release_date ⇒ String
The date the album was first released.
-
#release_date_precision ⇒ Symbol, Spotted::Models::TrackObject::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.
-
#type ⇒ Symbol, Spotted::Models::TrackObject::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: , artists: , available_markets: , external_urls: , href: , images: , name: , release_date: , release_date_precision: , total_tracks: , type: , uri: , restrictions: 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: , 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::TrackObject::Album for more details.
The album on which the track appears. The album object includes a link in ‘href` to full information about the album.
|
|
# File 'lib/spotted/models/track_object.rb', line 286
|
Instance Attribute Details
#album_type ⇒ Symbol, Spotted::Models::TrackObject::Album::AlbumType
The type of the album.
206 |
# File 'lib/spotted/models/track_object.rb', line 206 required :album_type, enum: -> { Spotted::TrackObject::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.
213 |
# File 'lib/spotted/models/track_object.rb', line 213 required :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._
222 |
# File 'lib/spotted/models/track_object.rb', line 222 required :available_markets, Spotted::Internal::Type::ArrayOf[String] |
#external_urls ⇒ Spotted::Models::ExternalURLObject
Known external URLs for this album.
228 |
# File 'lib/spotted/models/track_object.rb', line 228 required :external_urls, -> { Spotted::ExternalURLObject } |
#href ⇒ String
A link to the Web API endpoint providing full details of the album.
234 |
# File 'lib/spotted/models/track_object.rb', line 234 required :href, String |
#id ⇒ String
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the album.
200 |
# File 'lib/spotted/models/track_object.rb', line 200 required :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>
The cover art for the album in various sizes, widest first.
240 |
# File 'lib/spotted/models/track_object.rb', line 240 required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#name ⇒ String
The name of the album. In case of an album takedown, the value may be an empty string.
247 |
# File 'lib/spotted/models/track_object.rb', line 247 required :name, String |
#release_date ⇒ String
The date the album was first released.
253 |
# File 'lib/spotted/models/track_object.rb', line 253 required :release_date, String |
#release_date_precision ⇒ Symbol, Spotted::Models::TrackObject::Album::ReleaseDatePrecision
The precision with which ‘release_date` value is known.
259 |
# File 'lib/spotted/models/track_object.rb', line 259 required :release_date_precision, enum: -> { Spotted::TrackObject::Album::ReleaseDatePrecision } |
#restrictions ⇒ Spotted::Models::AlbumRestrictionObject?
Included in the response when a content restriction is applied.
284 |
# File 'lib/spotted/models/track_object.rb', line 284 optional :restrictions, -> { Spotted::AlbumRestrictionObject } |
#total_tracks ⇒ Integer
The number of tracks in the album.
265 |
# File 'lib/spotted/models/track_object.rb', line 265 required :total_tracks, Integer |
#type ⇒ Symbol, Spotted::Models::TrackObject::Album::Type
The object type.
271 |
# File 'lib/spotted/models/track_object.rb', line 271 required :type, enum: -> { Spotted::TrackObject::Album::Type } |
#uri ⇒ String
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the album.
278 |
# File 'lib/spotted/models/track_object.rb', line 278 required :uri, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/spotted/models/track_object.rb', line 331
|