Class: Spotted::Models::SimplifiedPlaylistObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::SimplifiedPlaylistObject
- Defined in:
- lib/spotted/models/simplified_playlist_object.rb
Defined Under Namespace
Classes: Owner
Instance Attribute Summary collapse
-
#collaborative ⇒ Boolean?
‘true` if the owner allows other users to modify the playlist.
-
#description ⇒ String?
The playlist description.
-
#external_urls ⇒ Spotted::Models::ExternalURLObject?
Known external URLs for this playlist.
-
#href ⇒ String?
A link to the Web API endpoint providing full details of the playlist.
-
#id ⇒ String?
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the playlist.
-
#images ⇒ Array<Spotted::Models::ImageObject>?
Images for the playlist.
-
#name ⇒ String?
The name of the playlist.
-
#owner ⇒ Spotted::Models::SimplifiedPlaylistObject::Owner?
The user who owns the playlist.
-
#public ⇒ Boolean?
The playlist’s public/private status (if it is added to the user’s profile): ‘true` the playlist is public, `false` the playlist is private, `null` the playlist status is not relevant.
-
#snapshot_id ⇒ String?
The version identifier for the current playlist.
-
#tracks ⇒ Spotted::Models::PlaylistTracksRefObject?
A collection containing a link ( ‘href` ) to the Web API endpoint where full details of the playlist’s tracks can be retrieved, along with the ‘total` number of tracks in the playlist.
-
#type ⇒ String?
The object type: “playlist”.
-
#uri ⇒ String?
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the playlist.
Instance Method Summary collapse
-
#initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, href: nil, images: nil, name: nil, owner: nil, public: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see SimplifiedPlaylistObject 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: nil, collaborative: nil, description: nil, external_urls: nil, href: nil, images: nil, name: nil, owner: nil, public: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::SimplifiedPlaylistObject for more details.
other
|
|
# File 'lib/spotted/models/simplified_playlist_object.rb', line 98
|
Instance Attribute Details
#collaborative ⇒ Boolean?
‘true` if the owner allows other users to modify the playlist.
17 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 17 optional :collaborative, Spotted::Internal::Type::Boolean |
#description ⇒ String?
The playlist description. _Only returned for modified, verified playlists, otherwise_ ‘null`.
24 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 24 optional :description, String |
#external_urls ⇒ Spotted::Models::ExternalURLObject?
Known external URLs for this playlist.
30 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 30 optional :external_urls, -> { Spotted::ExternalURLObject } |
#href ⇒ String?
A link to the Web API endpoint providing full details of the playlist.
36 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 36 optional :href, String |
#id ⇒ String?
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the playlist.
11 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 11 optional :id, String |
#images ⇒ Array<Spotted::Models::ImageObject>?
Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order. See [Working with Playlists](/documentation/web-api/concepts/playlists). _Note: If returned, the source URL for the image (‘url`) is temporary and will expire in less than a day._
46 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 46 optional :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] } |
#name ⇒ String?
The name of the playlist.
52 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 52 optional :name, String |
#owner ⇒ Spotted::Models::SimplifiedPlaylistObject::Owner?
The user who owns the playlist
58 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 58 optional :owner, -> { Spotted::SimplifiedPlaylistObject::Owner } |
#public ⇒ Boolean?
The playlist’s public/private status (if it is added to the user’s profile): ‘true` the playlist is public, `false` the playlist is private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)
67 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 67 optional :public, Spotted::Internal::Type::Boolean |
#snapshot_id ⇒ String?
The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version
74 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 74 optional :snapshot_id, String |
#tracks ⇒ Spotted::Models::PlaylistTracksRefObject?
A collection containing a link ( ‘href` ) to the Web API endpoint where full details of the playlist’s tracks can be retrieved, along with the ‘total` number of tracks in the playlist. Note, a track object may be `null`. This can happen if a track is no longer available.
83 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 83 optional :tracks, -> { Spotted::PlaylistTracksRefObject } |
#type ⇒ String?
The object type: “playlist”
89 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 89 optional :type, String |
#uri ⇒ String?
The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the playlist.
96 |
# File 'lib/spotted/models/simplified_playlist_object.rb', line 96 optional :uri, String |