Class: Spix::Parser::RSS

Inherits:
Object show all
Includes:
Feedzirra::FeedUtilities, SAXMachine
Defined in:
lib/spix_parser/custom_parsers/rss.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#feed_urlObject

Returns the value of attribute feed_url.



17
18
19
# File 'lib/spix_parser/custom_parsers/rss.rb', line 17

def feed_url
  @feed_url
end

Class Method Details

.able_to_parse?(xml) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


19
20
21
# File 'lib/spix_parser/custom_parsers/rss.rb', line 19

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

Instance Method Details

#last_modifiedObject



23
24
25
# File 'lib/spix_parser/custom_parsers/rss.rb', line 23

def last_modified
  @last_modified.present? ? @last_modified : super
end