Class: RMD::Base::Playlist

Inherits:
Object
  • Object
show all
Defined in:
lib/rmd/base/playlist.rb

Direct Known Subclasses

NCT::Playlist, Zing::Playlist

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



6
7
8
# File 'lib/rmd/base/playlist.rb', line 6

def errors
  @errors
end

Returns the value of attribute link.



6
7
8
# File 'lib/rmd/base/playlist.rb', line 6

def link
  @link
end

#songsObject (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

#fetchObject



18
# File 'lib/rmd/base/playlist.rb', line 18

def fetch; end

#success?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/rmd/base/playlist.rb', line 14

def success?
  !!songs && songs.count > 0
end