Constants
CONTENT_PREFIX = 'content'
CONTENT_URI = "http://purl.org/rss/1.0/modules/content/"
DC_PREFIX = 'dc'
DC_URI = "http://purl.org/dc/elements/1.1/"
DublincoreModel = DublinCoreModel
IMAGE_PREFIX = 'image'
IMAGE_URI = 'http://purl.org/rss/1.0/modules/image/'
IMAGE_ELEMENTS = []
ITUNES_PREFIX = 'itunes'
ITUNES_URI = 'http://www.itunes.com/dtds/podcast-1.0.dtd'
AVAILABLE_PARSER_LIBRARIES = [ ["rss/xmlparser", :XMLParserParser], ["rss/xmlscanner", :XMLScanParser], ["rss/rexmlparser", :REXMLParser], ]
AVAILABLE_PARSERS = []
VERSION = "0.2.4"
URI = "http://purl.org/rss/1.0/"
DEBUG = false
NotExceptedTagError = NotExpectedTagError
UnknownConvertMethod = UnknownConversionMethodError
SLASH_PREFIX = 'slash'
SLASH_URI = "http://purl.org/rss/1.0/modules/slash/"
SY_PREFIX = 'sy'
SY_URI = "http://purl.org/rss/1.0/modules/syndication/"
TAXO_PREFIX = "taxo"
TAXO_URI = "http://purl.org/rss/1.0/modules/taxonomy/"
TAXO_ELEMENTS = []
TRACKBACK_PREFIX = 'trackback'
TRACKBACK_URI = 'http://madskills.com/public/xml/rss/module/trackback/'
Attributes
Undocumented pile of ruby
> If you’d like to read someone’s RSS feed with your Ruby code, you’ve come to the right place
No, you’ve definitely come to wrong place. RSS is one of the worst documented libraries I’ve ever seen for Ruby. It’s as confusing and misleading as it can get.
RSS feeds in Rails
Fetching RSS feeds in the request/response cycle inside a Rails application is probably not the very best approach, as it will make your application as slow as the server serving RSS feeds. Another option is to do it asynchronously using a worker or a queue, but this can also become quite complex and hard to maintain over time.
Another solution is to use an API like superfeedr.com and its Rails Engine (http://blog.superfeedr.com/consuming-rss-feeds-rails/). All the polling and parsing is done on Superfeedr’s side and your application is notified in realtime as soon as the resources are updated using a webhook pattern.
What you really want is
The official Ruby documentation is available for this here http://ruby-doc.org/stdlib-2.2.3/libdoc/rss/rdoc/RSS.html
But the library that will be most helpful to you is called Feedjira: http://feedjira.com/