Sha256: 9b35175109df9b9032f40468382d680f91b5aeec29f01db33431f5ad220bb023

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

module Feedzirra

  module Parser
    # Parser for dealing with RSS feeds.
    class RSSFeedBurner
      include SAXMachine
      include FeedUtilities
      element :title
      element :description
      element :link, :as => :url
      elements :"atom10:link", :as => :hubs, :value => :href, :with => {:rel => "hub"}
      elements :item, :as => :entries, :class => RSSFeedBurnerEntry

      attr_accessor :feed_url

      def self.able_to_parse?(xml) #:nodoc:
        (/\<rss|\<rdf/ =~ xml) && (/feedburner/ =~ xml)
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
feedzirra-0.7.1 lib/feedzirra/parser/rss_feed_burner.rb
feedzirra-0.7.0 lib/feedzirra/parser/rss_feed_burner.rb
feedzirra-0.6.0 lib/feedzirra/parser/rss_feed_burner.rb
feedzirra-0.5.0 lib/feedzirra/parser/rss_feed_burner.rb
feedzirra-0.4.0 lib/feedzirra/parser/rss_feed_burner.rb