Sha256: 9f8414a152e7bf0a45f65e71d9e241089f484bbb712d68220a09d20975a37a2d

Contents?: true

Size: 591 Bytes

Versions: 12

Compression:

Stored size: 591 Bytes

Contents

module Feedzirra
  # == Summary
  # Parser for dealing with Atom feeds.
  #
  # == Attributes
  # * title
  # * feed_url
  # * url
  # * entries
  class Atom
    include SAXMachine
    include FeedUtilities
    element :title
    element :link, :as => :url, :value => :href, :with => {:type => "text/html"}
    element :link, :as => :feed_url, :value => :href, :with => {:type => "application/atom+xml"}
    elements :entry, :as => :entries, :class => AtomEntry
    
    def self.able_to_parse?(xml) #:nodoc:
      xml =~ /(Atom)|(#{Regexp.escape("http://purl.org/atom")})/
    end
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
astro-feedzirra-0.0.8.20090419 lib/feedzirra/atom.rb
dinsley-feedzirra-0.0.10 lib/feedzirra/atom.rb
dinsley-feedzirra-0.0.11 lib/feedzirra/atom.rb
dinsley-feedzirra-0.0.8 lib/feedzirra/atom.rb
dinsley-feedzirra-0.0.9 lib/feedzirra/atom.rb
eric-feedzirra-0.0.8 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.10 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.5 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.6 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.7 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.8 lib/feedzirra/atom.rb
pauldix-feedzirra-0.0.9 lib/feedzirra/atom.rb