Class: Feedzirra::RDF

Inherits:
Object
  • Object
show all
Includes:
FeedUtilities, SAXMachine
Defined in:
lib/feedzirra/rdf.rb

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

#has_new_entries?, #update_attribute, #update_from_feed, #updated?

Instance Attribute Details

#feed_urlObject

Returns the value of attribute feed_url.



9
10
11
# File 'lib/feedzirra/rdf.rb', line 9

def feed_url
  @feed_url
end

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/feedzirra/rdf.rb', line 11

def self.able_to_parse?(xml)
  xml =~ /(rdf\:RDF)|(#{Regexp.escape("http://purl.org/rss/1.0")})|(rss version\=\"0\.9.?\")/ || false
end