Class: YouTubeIt::Parser::CommentsFeedParser
- Inherits:
-
FeedParser
- Object
- FeedParser
- YouTubeIt::Parser::CommentsFeedParser
- Defined in:
- lib/youtube_it/parser.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#parse_content(content) ⇒ Object
return array of comments.
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 comments
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/youtube_it/parser.rb', line 30 def parse_content(content) doc = REXML::Document.new(content.body) feed = doc.elements["feed"] comments = [] feed.elements.each("entry") do |entry| comments << parse_entry(entry) end return comments end |