Sha256: 42a0047e37a2bdda72c0b08f4e64f309328c34f25e0cabbaf045b6cb33398883
Contents?: true
Size: 990 Bytes
Versions: 2
Compression:
Stored size: 990 Bytes
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 :name, :as => :author element :guid element :content element :summary element :published element :id element :created, :as => :published element :"media:content", :as => :image, :value => :url 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fblee-feedzirra-0.0.18 | lib/feedzirra/parser/atom_entry.rb |
fblee-feedzirra-0.0.17 | lib/feedzirra/parser/atom_entry.rb |