Sha256: 39f0fbcbba98fc8ac93ae97a1b9e93009f3f92a447361a09b4910795dbd1854e

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 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 :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

2 entries across 2 versions & 1 rubygems

Version Path
feedzirra-0.3.0 lib/feedzirra/parser/rss_feed_burner.rb
feedzirra-0.2.2 lib/feedzirra/parser/rss_feed_burner.rb