Sha256: bdb6e27c3b22cf143e122c872ae88ed7d0eeb7615561e8b32b81052da5c95126
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
module Feedzirra module Parser # == Summary # Parser for dealing with Atom feed entries. # # == Attributes # * title # * url # * author # * content # * summary # * published # * categories class AtomEntry include SAXMachine include FeedEntryUtilities element :title element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"} element :"feedburner:origLink", :as => :url element :name, :as => :author element :content element :summary element :published element :id element :created, :as => :published element :issued, :as => :published element :updated element :modified, :as => :updated elements :category, :as => :categories, :value => :term elements :link, :as => :links, :value => :href elements :link, :as => :enclosure_links, :value => :href, :with => {:rel => "enclosure"} def url @url || links.first end end end end
Version data entries
4 entries across 4 versions & 2 rubygems