Sha256: dbeaead788aca0a7d6d4da2eb74f3bd8ed004b0489ac5294dbb69b7106e9448a
Contents?: true
Size: 886 Bytes
Versions: 10
Compression:
Stored size: 886 Bytes
Contents
module Feedjira 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 :"media:content", :as => :image, :value => :url element :enclosure, :as => :image, :value => :href 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
10 entries across 10 versions & 1 rubygems