Class: Caldera::Model::PlaylistInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/caldera/model/playlist_info.rb

Overview

Information about a playlist loaded through Client#load_tracks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ PlaylistInfo

Returns a new instance of PlaylistInfo.



13
14
15
16
# File 'lib/caldera/model/playlist_info.rb', line 13

def initialize(data)
  @selected_track = data['selectedTrack']
  @name = data['name']
end

Instance Attribute Details

#nameString (readonly)

Returns:

  • (String)


8
9
10
# File 'lib/caldera/model/playlist_info.rb', line 8

def name
  @name
end

#selected_trackInteger (readonly)

Returns:

  • (Integer)


11
12
13
# File 'lib/caldera/model/playlist_info.rb', line 11

def selected_track
  @selected_track
end