Class: Shortwave::Model::Playlist
- Defined in:
- lib/shortwave/model/playlist.rb
Overview
A playlist
Attributes
idid
titletitle
descriptiondescription
created_atCreation time
sizeNumber of tracks in the playlist
durationlength in milliseconds of the playlist
creator_urlLast.fm url of creator
urlLast.fm url of playlist
Instance Method Summary collapse
-
#add_track(track) ⇒ Object
This can only be called on a user's own playlist.
- #streamable? ⇒ Boolean
Methods inherited from BaseModel
facade_name, identified_by, inherited, link_to, #session=, sharable, shoutable, taggable
Instance Method Details
#add_track(track) ⇒ Object
This can only be called on a user's own playlist
31 32 33 |
# File 'lib/shortwave/model/playlist.rb', line 31 def add_track(track) @session.playlist_facade.add_track(id, track.name, track.artist_name) end |
#streamable? ⇒ Boolean
26 27 28 |
# File 'lib/shortwave/model/playlist.rb', line 26 def streamable? @streamable end |