Class: Spotted::Models::PlaylistTrackObject

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

Defined Under Namespace

Modules: Track

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(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

Parameters:

  • added_at (Time) (defaults to: nil)

    The date and time the track or episode was added. _Note: some very old

  • added_by (Spotted::Models::PlaylistUserObject) (defaults to: nil)

    The Spotify user who added the track or episode. _Note: some very old

  • is_local (Boolean) (defaults to: nil)

    Whether this track or episode is a [local file](/documentation/web-api/concepts/

  • track (Spotted::Models::TrackObject, Spotted::Models::EpisodeObject) (defaults to: nil)

    Information about the track or episode.



# File 'lib/spotted/models/playlist_track_object.rb', line 33

Instance Attribute Details

#added_atTime?

The date and time the track or episode was added. _Note: some very old playlists may return ‘null` in this field._

Returns:

  • (Time, nil)


11
# File 'lib/spotted/models/playlist_track_object.rb', line 11

optional :added_at, Time

#added_bySpotted::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_localBoolean?

Whether this track or episode is a [local file](/documentation/web-api/concepts/playlists/#local-files) or not.

Returns:

  • (Boolean, nil)


25
# File 'lib/spotted/models/playlist_track_object.rb', line 25

optional :is_local, Spotted::Internal::Type::Boolean

#trackSpotted::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 }