Class: RSS::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_wall/std_lib_ext/rss/parser.rb

Class Method Summary collapse

Class Method Details

.fetch_and_parse(url) ⇒ Object

Fetches, and then parses, the RSS feed at the specified URL

Parameters

url - String

The URL of the RSS feed

Returns

RSS::Rss



9
10
11
12
13
# File 'lib/facebook_wall/std_lib_ext/rss/parser.rb', line 9

def self.fetch_and_parse(url)
  open url do |http|
    RSS::Parser.parse http.read
  end
end