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



132
133
134
135
136
137
138
139
140
141
# File 'lib/youtube_it/parser.rb', line 132

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