Sha256: e831fc6698db1d1dd21e73191fca4b012e56dbc2240fae4f377767ee922ea0f3
Contents?: true
Size: 669 Bytes
Versions: 14
Compression:
Stored size: 669 Bytes
Contents
module Feedjira module Parser class Podcast include SAXMachine include FeedUtilities include ::Feedjira::Podcast::Channel::Required include ::Feedjira::Podcast::Channel::Optional include ::Feedjira::Podcast::Channel::Atom include ::Feedjira::Podcast::Channel::Feedburner include ::Feedjira::Podcast::Channel::Apple elements :item, as: :items, class: PodcastItem def self.able_to_parse?(xml) # TODO Look several something podcast-specific matches, especially # to cover feeds that may not have any items yet (/\<rss|\<rdf/ =~ xml) && (/enclosure/ =~ xml) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems