Class: Feedzirra::Parser::RSS

Inherits:
Object
  • Object
show all
Includes:
FeedUtilities, SAXMachine
Defined in:
lib/feedzirra/parser/rss.rb

Overview

Parser for dealing with RSS feeds.

Constant Summary

Constants included from FeedUtilities

FeedUtilities::UPDATABLE_ATTRIBUTES

Instance Attribute Summary collapse

Attributes included from FeedUtilities

#etag, #last_modified, #new_entries, #updated

Class Method Summary collapse

Methods included from FeedUtilities

#has_new_entries?, included, #sanitize_entries!, #update_attribute, #update_from_feed, #updated?

Instance Attribute Details

#feed_urlObject

Returns the value of attribute feed_url.



14
15
16
# File 'lib/feedzirra/parser/rss.rb', line 14

def feed_url
  @feed_url
end

#hubsObject

Returns the value of attribute hubs.



15
16
17
# File 'lib/feedzirra/parser/rss.rb', line 15

def hubs
  @hubs
end

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


17
18
19
# File 'lib/feedzirra/parser/rss.rb', line 17

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