Class: YouTubeIt::Parser::SubscriptionFeedParser

Inherits:
FeedParser
  • Object
show all
Defined in:
lib/youtube_it/parser.rb

Overview

:nodoc:

Instance Method Summary collapse

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



309
310
311
312
313
314
315
316
317
318
# File 'lib/youtube_it/parser.rb', line 309

def parse_content(content)
  doc = REXML::Document.new(content.body)
  feed = doc.elements["feed"]
  
  subscriptions = []
  feed.elements.each("entry") do |entry|
    subscriptions << parse_entry(entry)
  end
  return subscriptions
end