lib/feedjira/parser/rss_entry.rb in feedjira-2.2.0 vs lib/feedjira/parser/rss_entry.rb in feedjira-3.0.0.beta1

- old
+ new

@@ -25,9 +25,13 @@ element :"dcterms:modified", as: :updated element :issued, as: :published elements :category, as: :categories element :guid, as: :entry_id - element :"dc:identifier", as: :entry_id + element :"dc:identifier", as: :dc_identifier + + def id + @entry_id ||= @dc_identifier || @url + end end end end