Class: Spotted::Models::PlaylistRetrieveResponse

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

Overview

Defined Under Namespace

Classes: Owner, Tracks

Instance Attribute 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(display_name: nil) ⇒ Object

Some parameter documentations has been truncated, see Owner for more details.

The user who owns the playlist

Parameters:

  • display_name (String, nil) (defaults to: nil)

    The name displayed on the user’s profile. ‘null` if not available.



# File 'lib/spotted/models/playlist_retrieve_response.rb', line 104

Instance Attribute Details

#collaborativeBoolean?

‘true` if the owner allows other users to modify the playlist.

Returns:

  • (Boolean, nil)


29
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 29

optional :collaborative, Spotted::Internal::Type::Boolean

#components_schemas_properties_is_publicBoolean?

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)

Returns:

  • (Boolean, nil)


21
22
23
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 21

optional :components_schemas_properties_is_public,
Spotted::Internal::Type::Boolean,
api_name: :"$.components.schemas.*.properties.is_public"

#descriptionString?

The playlist description. _Only returned for modified, verified playlists, otherwise_ ‘null`.

Returns:

  • (String, nil)


36
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 36

optional :description, String, nil?: true

#external_urlsSpotted::Models::ExternalURLObject?

Known external URLs for this playlist.



42
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 42

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

#followersSpotted::Models::FollowersObject?

Information about the followers of the playlist.



48
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 48

optional :followers, -> { Spotted::FollowersObject }

#hrefString?

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

Returns:

  • (String, nil)


54
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 54

optional :href, String

#idString?

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

Returns:

  • (String, nil)


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

optional :id, String

#imagesArray<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._

Returns:



64
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 64

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

#nameString?

The name of the playlist.

Returns:

  • (String, nil)


70
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 70

optional :name, String

#ownerSpotted::Models::PlaylistRetrieveResponse::Owner?

The user who owns the playlist



76
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 76

optional :owner, -> { Spotted::Models::PlaylistRetrieveResponse::Owner }

#snapshot_idString?

The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version

Returns:

  • (String, nil)


83
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 83

optional :snapshot_id, String

#tracksSpotted::Models::PlaylistRetrieveResponse::Tracks?

The tracks of the playlist.



89
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 89

optional :tracks, -> { Spotted::Models::PlaylistRetrieveResponse::Tracks }

#typeString?

The object type: “playlist”

Returns:

  • (String, nil)


95
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 95

optional :type, String

#uriString?

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

Returns:

  • (String, nil)


102
# File 'lib/spotted/models/playlist_retrieve_response.rb', line 102

optional :uri, String