Module: Jkl::Rss

Defined in:
lib/jkl/rss_client.rb

Class Method Summary collapse

Class Method Details

.items(rss) ⇒ Object



5
6
7
8
# File 'lib/jkl/rss_client.rb', line 5

def items(rss)
  rss_doc = Nokogiri::Slop(rss)
  rss_doc.rss.channel.item
end


10
11
12
# File 'lib/jkl/rss_client.rb', line 10

def links(items)
  items.map{|item| item.link.inner_html}
end