Sha256: a53c1865235afa6b689c3c905e292b2e21c27a9e0c6bebd0666e596817db88ec
Contents?: true
Size: 887 Bytes
Versions: 7
Compression:
Stored size: 887 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 :"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
7 entries across 7 versions & 1 rubygems