Class: Caldera::Model::PlaylistInfo
- Inherits:
-
Object
- Object
- Caldera::Model::PlaylistInfo
- Defined in:
- lib/caldera/model/playlist_info.rb
Overview
Information about a playlist loaded through Client#load_tracks
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #selected_track ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(data) ⇒ PlaylistInfo
constructor
A new instance of PlaylistInfo.
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
#name ⇒ String (readonly)
8 9 10 |
# File 'lib/caldera/model/playlist_info.rb', line 8 def name @name end |
#selected_track ⇒ Integer (readonly)
11 12 13 |
# File 'lib/caldera/model/playlist_info.rb', line 11 def selected_track @selected_track end |