Class: YouTubeIt::Parser::PlaylistsFeedParser
- Inherits:
-
FeedParser
- Object
- FeedParser
- YouTubeIt::Parser::PlaylistsFeedParser
- Defined in:
- lib/youtube_it/parser.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#parse_content(content) ⇒ Object
return array of playlist objects.
Methods inherited from FeedParser
#initialize, #parse, #parse_videos
Constructor Details
This class inherits a constructor from YouTubeIt::Parser::FeedParser
Instance Method Details
#parse_content(content) ⇒ Object
return array of playlist objects
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/youtube_it/parser.rb', line 77 def parse_content(content) doc = REXML::Document.new(content.body) feed = doc.elements["feed"] playlists = [] feed.elements.each("entry") do |entry| playlists << parse_entry(entry) end return playlists end |