Sha256: 89c7125fa1169f3422d71f42071d2165bdc10564acc432148ab9fde4efd6166d

Contents?: true

Size: 982 Bytes

Versions: 7

Compression:

Stored size: 982 Bytes

Contents

module Feedzirra

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

      element :title
      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
      element :"dc:identifier", :as => :entry_id
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
feedzirra-0.7.1 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.7.0 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.6.0 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.5.0 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.4.0 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.3.0 lib/feedzirra/parser/rss_entry.rb
feedzirra-0.2.2 lib/feedzirra/parser/rss_entry.rb