Class: YouTubeIt::Parser::VideoFeedParser

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

Overview

:nodoc:

Direct Known Subclasses

BatchVideoFeedParser, VideosFeedParser

Instance Method Summary collapse

Methods inherited from FeedParser

#initialize, #parse, #parse_single_entry, #parse_videos, #remove_bom

Constructor Details

This class inherits a constructor from YouTubeIt::Parser::FeedParser

Instance Method Details

#parse_content(content) ⇒ Object



396
397
398
399
400
401
# File 'lib/youtube_it/parser.rb', line 396

def parse_content(content)
  doc = (content.is_a?(Nokogiri::XML::Document)) ? content : Nokogiri::XML(content)

  entry = doc.at "entry"
  parse_entry(entry)
end