# File lib/parsers/simple-rss.rb, line 67
    def self.package(atomrss)
      feed = Feed.new(self)

      # root elements

      feed_mapping = {
        :generator => :generator,
        :title => :title,
        :last_updated => [:updated, :lastBuildDate, :pubDate, :dc_date],
        :copyright => [:copyright, :rights],
        :authors => [:author, :webMaster, :managingEditor, :contributor],
        :urls => :link,
        :description => [:description, :subtitle],
        :ttl => :ttl
      }

      map_functions!(feed_mapping, atomrss, feed)

      # custom channel elements

      feed.id = feed_id(atomrss)
      feed.image = image(atomrss)


      # entry elements

      entry_mapping = {
        :date_published => [:pubDate, :published, :dc_date, :issued],
        :urls => :link,
        :description => [:description, :summary],
        :content => [:content, :content_encoded, :description],
        :title => :title,
        :authors => [:author, :contributor, :dc_creator],
        :categories => :category,
        :last_updated => [:updated, :dc_date, :pubDate]
      }

      atomrss.entries.each do |atomrss_entry|
        feed_entry = Entry.new
        map_functions!(entry_mapping, atomrss_entry, feed_entry)

        # custom entry elements

        feed_entry.id = atomrss_entry.guid || atomrss_entry[:id] # entries are a Hash..

        feed_entry.copyright = atomrss_entry.copyright || (atomrss.respond_to?(:copyright) ? atomrss.copyright : nil)

        feed.entries << feed_entry
      end

      feed
    end