Class: Tubeclip::Parser::CaptionFeedParser

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

Overview

:nodoc:

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 Tubeclip::Parser::FeedParser

Instance Method Details

#parse_content(content) ⇒ Object



376
377
378
379
380
381
# File 'lib/tubeclip/parser.rb', line 376

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

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