Class: Feedjira::Parser::RSS

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

Overview

Parser for dealing with RSS feeds. Source: cyber.harvard.edu/rss/rss.html

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

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

Instance Attribute Details

#feed_urlObject

Returns the value of attribute feed_url.



22
23
24
# File 'lib/feedjira/parser/rss.rb', line 22

def feed_url
  @feed_url
end

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/feedjira/parser/rss.rb', line 24

def self.able_to_parse?(xml)
  (/<rss|<rdf/ =~ xml) && !xml.include?("feedburner")
end