class Spotify::Models::PlaylistTrack

Attributes

added_at[R]
added_by[R]
is_local[R]
track[R]

Public Class Methods

new(args = {}) click to toggle source
# File lib/spotify/models/playlist_track.rb, line 9
def initialize(args = {})
  args = args.with_indifferent_access

  @is_local = args[:is_local]
  @track    = Track.new(args[:name])

  # HACK: Using JSON while the other classes aren't available.
  @added_at = args[:added_at]
  @added_by = args[:added_by]
end