Class: YouTubeG::Parser::FeedParser

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

Overview

:nodoc:

Direct Known Subclasses

VideoFeedParser

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ FeedParser

Returns a new instance of FeedParser.



4
5
6
# File 'lib/youtube_g/parser.rb', line 4

def initialize(url)
  @url = url
end

Instance Method Details

#parseObject



8
9
10
# File 'lib/youtube_g/parser.rb', line 8

def parse
  parse_content open(@url).read
end