Class: RMD::SongPlaylistAdapter
- Inherits:
-
Object
- Object
- RMD::SongPlaylistAdapter
- Extended by:
- Forwardable
- Defined in:
- lib/rmd/song_playlist_adapter.rb
Instance Attribute Summary collapse
-
#song ⇒ Object
readonly
Returns the value of attribute song.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(song) ⇒ SongPlaylistAdapter
constructor
A new instance of SongPlaylistAdapter.
- #songs ⇒ Object
Constructor Details
#initialize(song) ⇒ SongPlaylistAdapter
Returns a new instance of SongPlaylistAdapter.
10 11 12 |
# File 'lib/rmd/song_playlist_adapter.rb', line 10 def initialize(song) @song = song end |
Instance Attribute Details
#song ⇒ Object (readonly)
Returns the value of attribute song.
7 8 9 |
# File 'lib/rmd/song_playlist_adapter.rb', line 7 def song @song end |
Instance Method Details
#errors ⇒ Object
18 19 20 |
# File 'lib/rmd/song_playlist_adapter.rb', line 18 def errors [song.errors].compact end |
#songs ⇒ Object
14 15 16 |
# File 'lib/rmd/song_playlist_adapter.rb', line 14 def songs [song.data_link].compact end |