Class | Feedzirra::Feed |
In: |
lib/feedzirra/feed.rb
|
Parent: | Object |
USER_AGENT | = | "feedzirra http://github.com/pauldix/feedzirra/tree/master" |
Adds a new feed parsing class that will be used for parsing.
A updated array of feed parser class names.
An abstraction for adding a feed by a Feed object to the passed Curb::multi stack.
The updated Curl::Multi object with the request details added to it‘s stack.
An abstraction for adding a feed by URL to the passed Curb::multi stack.
The updated Curl::Multi object with the request details added to it‘s stack.
Decodes the XML document if it was compressed.
A decoded string of XML.
Determines the correct parser class to use for parsing the feed.
The class name of the parser that can handle the XML.
Determines the etag from the request headers.
A string of the etag or nil if it cannot be found in the headers.
Fetches and returns the parsed XML for each URL provided.
A Feed object if a single URL is passed.
A Hash if multiple URL‘s are passed. The key will be the URL, and the value the Feed object.
Fetches and returns the raw XML for each URL provided.
A String of XML if a single URL is passed.
A Hash if multiple URL‘s are passed. The key will be the URL, and the value the XML.
Determines the last modified date from the request headers.
A Time object of the last modified date or nil if it cannot be found in the headers.
Takes a raw XML feed and attempts to parse it. If no parser is available a Feedzirra::NoParserAvailable exception is raised.
An instance of the determined feed type. By default a Feedzirra::Atom, Feedzirra::AtomFeedBurner, Feedzirra::RDF, or Feedzirra::RSS object.
Feedzirra::NoParserAvailable : If no valid parser classes could be found for the feed.
Updates each feed for each Feed object provided.
A updated Feed object if a single URL is passed.
A Hash if multiple Feeds are passed. The key will be the URL, and the value the updated Feed object.