Sha256: 870a058188f641fde3389f7cc36421506540d4467c6c29d462832fac314bf904

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

module Feedjira

  module Parser
    # Parser for dealing with RDF feed entries.
    class RSSFeedBurnerEntry
        include SAXMachine
        include FeedEntryUtilities

        element :title

        element :"feedburner:origLink", :as => :url
        element :link, :as => :url

        element :"dc:creator", :as => :author
        element :author, :as => :author
        element :"content:encoded", :as => :content
        element :description, :as => :summary

        element :"media:content", :as => :image, :value => :url
        element :enclosure, :as => :image, :value => :url

        element :pubDate, :as => :published
        element :pubdate, :as => :published
        element :"dc:date", :as => :published
        element :"dc:Date", :as => :published
        element :"dcterms:created", :as => :published


        element :"dcterms:modified", :as => :updated
        element :issued, :as => :published
        elements :category, :as => :categories

        element :guid, :as => :entry_id

        def url
          @url || @link
        end

    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
feedjira-2.0.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.6.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.5.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.4.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.3.1 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.3.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.2.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.1.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-1.0.0 lib/feedjira/parser/rss_feed_burner_entry.rb
feedjira-0.9.0 lib/feedjira/parser/rss_feed_burner_entry.rb