Module: Youtube
- Defined in:
- lib/downthetube/video.rb,
lib/downthetube/youtube.rb,
lib/downthetube/play_list.rb
Defined Under Namespace
Classes: Playlist, RetrievalError, Video, YT
Class Method Summary collapse
Class Method Details
.playlists_for(user) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/downthetube/youtube.rb', line 15 def Youtube.playlists_for user youtube = YT.new() feed = youtube.feed_for(user) playlists = [] feed.elements.each('entry') do |entry| playlists<< Playlist.new(entry) end playlists end |