Sha256: 42593aeb0f0992bb52b77f7ca52077b28a4928fdeafa56c3b052ec66d7c33f4e

Contents?: true

Size: 981 Bytes

Versions: 10

Compression:

Stored size: 981 Bytes

Contents

module Feedjira

  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

10 entries across 10 versions & 1 rubygems

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