Sha256: a309193092d6bb4237bd982e9e16c9bc35aa6edfbe276853d7ac81f087782d42

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

module Jkl
  module Rss
    class << self
      def items(rss)
        rss_doc = Nokogiri::Slop(rss)
        rss_doc.rss.channel.item
      end
      
      def links(items)
        items.map{|item| item.link.inner_html}
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jakal-0.2.1 lib/jkl/rss_client.rb
jakal-0.2.0 lib/jkl/rss_client.rb