Sha256: 383ea9d68af2f45a1104aa30faed9cf5953ce7fbeff69021802f14a9a1ea0fa5

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

require 'hpricot'

module Jkl
  
  def self.get_items_from(rssdoc)
    items = []
    (rssdoc/:item).each { |rssitem| items.push rssitem } unless rssdoc==nil
    items
  end
  
  def self.attribute_from(item, name)
    (item/name).inner_html
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jakal-0.0.9 lib/jkl/rss_client.rb
jakal-0.0.8 lib/jkl/rss_client.rb
jakal-0.0.7 lib/jkl/rss_client.rb