Class: Spotted::Models::PlaylistTrackObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::PlaylistTrackObject
- Defined in:
- lib/spotted/models/playlist_track_object.rb
Defined Under Namespace
Modules: Track
Instance Attribute Summary collapse
-
#added_at ⇒ Time?
The date and time the track or episode was added.
-
#added_by ⇒ Spotted::Models::PlaylistUserObject?
The Spotify user who added the track or episode.
-
#is_local ⇒ Boolean?
Whether this track or episode is a [local file](/documentation/web-api/concepts/playlists/#local-files) or not.
-
#track ⇒ Spotted::Models::TrackObject, ...
Information about the track or episode.
Instance Method Summary collapse
-
#initialize(added_at: nil, added_by: nil, is_local: nil, track: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see PlaylistTrackObject 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(added_at: nil, added_by: nil, is_local: nil, track: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::PlaylistTrackObject for more details.
playl
playli
|
|
# File 'lib/spotted/models/playlist_track_object.rb', line 33
|
Instance Attribute Details
#added_at ⇒ Time?
The date and time the track or episode was added. _Note: some very old playlists may return ‘null` in this field._
11 |
# File 'lib/spotted/models/playlist_track_object.rb', line 11 optional :added_at, Time |
#added_by ⇒ Spotted::Models::PlaylistUserObject?
The Spotify user who added the track or episode. _Note: some very old playlists may return ‘null` in this field._
18 |
# File 'lib/spotted/models/playlist_track_object.rb', line 18 optional :added_by, -> { Spotted::PlaylistUserObject } |
#is_local ⇒ Boolean?
Whether this track or episode is a [local file](/documentation/web-api/concepts/playlists/#local-files) or not.
25 |
# File 'lib/spotted/models/playlist_track_object.rb', line 25 optional :is_local, Spotted::Internal::Type::Boolean |
#track ⇒ Spotted::Models::TrackObject, ...
Information about the track or episode.
31 |
# File 'lib/spotted/models/playlist_track_object.rb', line 31 optional :track, union: -> { Spotted::PlaylistTrackObject::Track } |