Reading an RSS feed using the simple-rss gem

require 'simple-rss'
require 'open-uri'

rss = SimpleRSS.parse open('http://slashdot.org/index.rdf')

(rss.public_methods - Object.public_methods).sort
#=> [:channel, :description, :entries, :feed, :image, :items, :link, :source, :textInput, :title]

rss.items[0]
{:title=>"Judge Tosses Wikimedia's Anti-NSA Lawsuit Because Wikipedia Isn't Big Enough", 
:link=>"http://rss.slashdot.org/~r/Slashdot/slashdot/to/~3/0jw5dWuDNxw/judge-tosses-wikimedias
-anti-nsa-lawsuit-because-wikipedia-isnt-big-enough", :description=>"<img src=\"http://feeds
.feedburner.com/~r/Slashdot/slashdot/to/~4/0jw5dWuDNxw\" height=\"1\" width=\"1\" alt=\"\"/>",
 :feedburner_origLink=>"http://yro.slashdot.org/story/15/10/24/1946258/judge-tosses-wikimedias-
anti-nsa-lawsuit-because-wikipedia-isnt-big-enough?utm_source=rss0.9mainlinkanon&utm_medium=feed"}
rss.items[-1]
{:title=>"Affordable Care Act Exchanges Fail To Detect Counterfeit Documentation", 
:link=>"http://rss.slashdot.org/~r/Slashdot/slashdot/to/~3/HZZ7Uh36oS4/affordable-care-act-
exchanges-fail-to-detect-counterfeit-documentation", :description=>"<img src=\"http://feeds
.feedburner.com/~r/Slashdot/slashdot/to/~4/HZZ7Uh36oS4\" height=\"1\" width=\"1\" alt=\"\"/>",
 :feedburner_origLink=>"http://yro.slashdot.org/story/15/10/23/2140252/affordable-care-act-exchanges
-fail-to-detect-counterfeit-documentation?utm_source=rss0.9mainlinkanon&utm_medium=feed"}

Resources