Class: Spotted::Models::Users::PlaylistCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::Users::PlaylistCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/spotted/models/users/playlist_create_params.rb
Overview
Instance Attribute Summary collapse
-
#collaborative ⇒ Boolean?
Defaults to ‘false`.
-
#description ⇒ String?
value for playlist description as displayed in Spotify Clients and in the Web API.
-
#name ⇒ String
The name for the new playlist, for example ‘“Your Coolest Playlist”`.
-
#public ⇒ Boolean?
Defaults to ‘true`.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(name: , collaborative: nil, description: nil, public: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see PlaylistCreateParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(name: , collaborative: nil, description: nil, public: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::Users::PlaylistCreateParams for more details.
to
|
|
# File 'lib/spotted/models/users/playlist_create_params.rb', line 48
|
Instance Attribute Details
#collaborative ⇒ Boolean?
Defaults to ‘false`. If `true` the playlist will be collaborative. _Note: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._
27 |
# File 'lib/spotted/models/users/playlist_create_params.rb', line 27 optional :collaborative, Spotted::Internal::Type::Boolean |
#description ⇒ String?
value for playlist description as displayed in Spotify Clients and in the Web API.
34 |
# File 'lib/spotted/models/users/playlist_create_params.rb', line 34 optional :description, String |
#name ⇒ String
The name for the new playlist, for example ‘“Your Coolest Playlist”`. This name does not need to be unique; a user may have several playlists with the same name.
17 |
# File 'lib/spotted/models/users/playlist_create_params.rb', line 17 required :name, String |
#public ⇒ Boolean?
Defaults to ‘true`. 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. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)
46 |
# File 'lib/spotted/models/users/playlist_create_params.rb', line 46 optional :public, Spotted::Internal::Type::Boolean |