Class: Feedjira::Parser::GoogleDocsAtom

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

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

Instance Method Summary collapse

Methods included from FeedUtilities

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

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


20
21
22
# File 'lib/feedjira/parser/google_docs_atom.rb', line 20

def self.able_to_parse?(xml) # :nodoc:
  %r{<id>https?://docs\.google\.com/.*</id>} =~ xml
end

Instance Method Details

#feed_urlObject



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

def feed_url
  @feed_url ||= links.first
end

#urlObject



16
17
18
# File 'lib/feedjira/parser/google_docs_atom.rb', line 16

def url
  @url ||= links.first
end