Class: RMD::Base::Playlist
- Inherits:
-
Object
- Object
- RMD::Base::Playlist
- Defined in:
- lib/rmd/base/playlist.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#songs ⇒ Object
readonly
Returns the value of attribute songs.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(link) ⇒ Playlist
constructor
A new instance of Playlist.
- #success? ⇒ Boolean
Constructor Details
#initialize(link) ⇒ Playlist
Returns a new instance of Playlist.
8 9 10 11 12 |
# File 'lib/rmd/base/playlist.rb', line 8 def initialize(link) @link = link @errors = [] @songs = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/rmd/base/playlist.rb', line 6 def errors @errors end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
6 7 8 |
# File 'lib/rmd/base/playlist.rb', line 6 def link @link end |
#songs ⇒ Object (readonly)
Returns the value of attribute songs.
6 7 8 |
# File 'lib/rmd/base/playlist.rb', line 6 def songs @songs end |
Instance Method Details
#fetch ⇒ Object
18 |
# File 'lib/rmd/base/playlist.rb', line 18 def fetch; end |
#success? ⇒ Boolean
14 15 16 |
# File 'lib/rmd/base/playlist.rb', line 14 def success? !!songs && songs.count > 0 end |