Sha256: c3d9dc5a554bd487b1bade2647dd288917c95c6046367ff8c086c9cdcded706f

Contents?: true

Size: 771 Bytes

Versions: 18

Compression:

Stored size: 771 Bytes

Contents

module Feedzirra

  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 :content
      element :summary
      element :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

      def url
        @url ||= links.first
      end
    end

  end

end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
codders-feedzirra-0.2.0.rc2 lib/feedzirra/parser/atom_entry.rb
feedzirra-0.2.0.rc2 lib/feedzirra/parser/atom_entry.rb
feedzirra-0.2.0.rc1 lib/feedzirra/parser/atom_entry.rb
fandango-0.2.1 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
jashmenn-feedzirra-0.1.3 lib/feedzirra/parser/atom_entry.rb
fandango-0.2.0 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
fandango-0.1.9 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
feedzirra-0.1.3 lib/feedzirra/parser/atom_entry.rb
fandango-0.1.8 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
fandango-0.1.7 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
fandango-0.1.6 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
fandango-0.1.5 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
feedzirra-0.1.2 lib/feedzirra/parser/atom_entry.rb
fandango-0.1.4 lib/vendor/feedzirra/lib/feedzirra/parser/atom_entry.rb
seanwalbran-feedzirra-0.1.3 lib/feedzirra/parser/atom_entry.rb
seanwalbran-feedzirra-0.1.2 lib/feedzirra/parser/atom_entry.rb
localist-feedzirra-0.2.1 lib/feedzirra/parser/atom_entry.rb
feedzirra-0.1.1 lib/feedzirra/parser/atom_entry.rb