lib/feedjira/parser/rss_entry.rb in feedjira-3.0.0.beta1 vs lib/feedjira/parser/rss_entry.rb in feedjira-3.0.0
- old
+ new
@@ -2,36 +2,9 @@
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: :dc_identifier
-
- def id
- @entry_id ||= @dc_identifier || @url
- end
+ include RSSEntryUtilities
end
end
end