Sha256: 313cf51307f0902d29df4b65c1391b60d8555d56d47953491cc9d0800ec16dae

Contents?: true

Size: 653 Bytes

Versions: 31

Compression:

Stored size: 653 Bytes

Contents

module Feedzirra
  
  module Parser
    # == 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
  
end

Version data entries

31 entries across 31 versions & 10 rubygems

Version Path
UnderpantsGnome-feedzirra-0.0.14 lib/feedzirra/parser/atom.rb
UnderpantsGnome-feedzirra-0.0.15 lib/feedzirra/parser/atom.rb
UnderpantsGnome-feedzirra-0.0.16 lib/feedzirra/parser/atom.rb
astro-feedzirra-0.0.12 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.1 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.10 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.12 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.2 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.3 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.4 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.5 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.6 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.7 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.8 lib/feedzirra/parser/atom.rb
jsl-feedzirra-0.0.12.9 lib/feedzirra/parser/atom.rb
julien51-feedzirra-0.0.13 lib/feedzirra/parser/atom.rb
julien51-feedzirra-0.0.14 lib/feedzirra/parser/atom.rb
julien51-feedzirra-0.0.16 lib/feedzirra/parser/atom.rb
mwilliams-feedzirra-0.0.14 lib/feedzirra/parser/atom.rb
mwilliams-feedzirra-0.0.15 lib/feedzirra/parser/atom.rb