Sha256: c3d9dc5a554bd487b1bade2647dd288917c95c6046367ff8c086c9cdcded706f
Contents?: true
Size: 771 Bytes
Versions: 18
Compression:
Stored size: 771 Bytes
Contents
module Feedzirra module Parser # Parser for dealing with Atom feed entries. class AtomEntry include SAXMachine include FeedEntryUtilities element :title element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"} element :name, :as => :author element :content element :summary element :published element :id, :as => :entry_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 def url @url ||= links.first end end end end
Version data entries
18 entries across 18 versions & 6 rubygems