Class: Feedjira::Parser::Atypon

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

Overview

Parser for dealing with Atypon feeds.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#feed_urlObject

Returns the value of attribute feed_url.



12
13
14
# File 'lib/feedjira/parser/atypon.rb', line 12

def feed_url
  @feed_url
end

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


14
15
16
# File 'lib/feedjira/parser/atypon.rb', line 14

def self.able_to_parse?(xml) #:nodoc:
  (/\<rdf\:RDF/ =~ xml) && (/\<rss\:channel/ =~ xml)
end