Class: Feedzirra::Parser::Atom
- Inherits:
-
Object
- Object
- Feedzirra::Parser::Atom
- Includes:
- FeedUtilities, SAXMachine
- Defined in:
- lib/feedzirra/parser/atom.rb
Overview
Summary
Parser for dealing with Atom feeds.
Attributes
-
title
-
feed_url
-
url
-
entries
Constant Summary
Constants included from FeedUtilities
FeedUtilities::UPDATABLE_ATTRIBUTES
Instance Attribute Summary
Attributes included from FeedUtilities
#etag, #last_modified, #new_entries, #updated
Class Method Summary collapse
-
.able_to_parse?(xml) ⇒ Boolean
:nodoc:.
Instance Method Summary collapse
Methods included from FeedUtilities
#has_new_entries?, #sanitize_entries!, #update_attribute, #update_from_feed, #updated?
Class Method Details
.able_to_parse?(xml) ⇒ Boolean
:nodoc:
21 22 23 |
# File 'lib/feedzirra/parser/atom.rb', line 21 def self.able_to_parse?(xml) #:nodoc: xml =~ /(Atom)|(#{Regexp.escape("http://purl.org/atom")})/ end |
Instance Method Details
#feed_url ⇒ Object
29 30 31 |
# File 'lib/feedzirra/parser/atom.rb', line 29 def feed_url @feed_url || links.first end |
#url ⇒ Object
25 26 27 |
# File 'lib/feedzirra/parser/atom.rb', line 25 def url @url || links.last end |