lib/feedjira/parser/atom_entry.rb in feedjira-2.0.0 vs lib/feedjira/parser/atom_entry.rb in feedjira-2.1.0

- old
+ new

@@ -1,34 +1,31 @@ module Feedjira - module Parser # Parser for dealing with Atom feed entries. class AtomEntry include SAXMachine include FeedEntryUtilities element :title - element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"} - element :name, :as => :author + element :link, as: :url, value: :href, with: { type: 'text/html', rel: 'alternate' } # rubocop:disable Metrics/LineLength + element :name, as: :author element :content element :summary - element :"media:content", :as => :image, :value => :url - element :enclosure, :as => :image, :value => :href + element :"media:content", as: :image, value: :url + element :enclosure, as: :image, value: :href element :published - element :id, :as => :entry_id - element :created, :as => :published - element :issued, :as => :published + element :id, as: :entry_id + element :created, as: :published + element :issued, as: :published element :updated - element :modified, :as => :updated - elements :category, :as => :categories, :value => :term - elements :link, :as => :links, :value => :href + element :modified, as: :updated + elements :category, as: :categories, value: :term + elements :link, as: :links, value: :href def url @url ||= links.first end end - end - end