Class: FeedParser::Dsl
- Inherits:
-
Object
- Object
- FeedParser::Dsl
- Defined in:
- lib/feed_parser/dsl.rb
Class Method Summary collapse
Class Method Details
.[](type) ⇒ Object
3 4 5 |
# File 'lib/feed_parser/dsl.rb', line 3 def self.[](type) send(type) end |
.atom ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/feed_parser/dsl.rb', line 20 def self.atom { :title => "/feed/title", :url => "/feed/link[@rel='self']", :alternate_url => "/feed/link[@rel='alternate']", :item => "/feed/entry", :item_guid => "id", :item_link => "link", :item_title => "title", :item_categories => "category", :item_author => "author/name", :item_description => "summary", :item_content => "content", } end |
.rss ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/feed_parser/dsl.rb', line 6 def self.rss { :title => "/rss/channel/title", :url => "/rss/channel/link", :item => "/rss/channel/item", :item_guid => "guid", :item_link => "link", :item_title => "title", :item_categories => "category", :item_author => "creator", :item_description => "description", :item_content => "encoded", } end |