Class: Feedjira::Parser::ITunesRSS
- Inherits:
-
Object
- Object
- Feedjira::Parser::ITunesRSS
- Includes:
- FeedUtilities, SAXMachine
- Defined in:
- lib/feedjira/parser/itunes_rss.rb
Overview
iTunes is RSS 2.0 + some apple extensions Sources:
* https://cyber.harvard.edu/rss/rss.html
* http://lists.apple.com/archives/syndication-dev/2005/Nov/msg00002.html
* https://help.apple.com/itc/podcasts_connect/
Constant Summary
Constants included from FeedUtilities
FeedUtilities::UPDATABLE_ATTRIBUTES
Instance Attribute Summary collapse
-
#feed_url ⇒ Object
Returns the value of attribute feed_url.
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?
Instance Attribute Details
#feed_url ⇒ Object
Returns the value of attribute feed_url.
14 15 16 |
# File 'lib/feedjira/parser/itunes_rss.rb', line 14 def feed_url @feed_url end |
Class Method Details
.able_to_parse?(xml) ⇒ Boolean
65 66 67 |
# File 'lib/feedjira/parser/itunes_rss.rb', line 65 def self.able_to_parse?(xml) %r{xmlns:itunes\s?=\s?["']http://www\.itunes\.com/dtds/podcast-1\.0\.dtd["']}i =~ xml end |
Instance Method Details
#itunes_categories ⇒ Object
50 51 52 53 54 |
# File 'lib/feedjira/parser/itunes_rss.rb', line 50 def itunes_categories _itunes_categories.flat_map do |itunes_category| itunes_category.enum_for(:each_subcategory).to_a end end |
#itunes_category_paths ⇒ Object
56 57 58 59 60 |
# File 'lib/feedjira/parser/itunes_rss.rb', line 56 def itunes_category_paths _itunes_categories.flat_map do |itunes_category| itunes_category.enum_for(:each_path).to_a end end |