Sha256: 1637dcd4f4d4668edf51cb49a89448d3ba93b69ebd487af5c8cb28d32a21909c
Contents?: true
Size: 764 Bytes
Versions: 3
Compression:
Stored size: 764 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
feedzirra-0.1.0 | lib/feedzirra/parser/atom_entry.rb |
feedzirra-0.0.31 | lib/feedzirra/parser/atom_entry.rb |
feedzirra-0.0.30 | lib/feedzirra/parser/atom_entry.rb |