Class: FeedParser::AtomItem
- Defined in:
- lib/feed_parser/feed_item.rb
Instance Attribute Summary
Attributes inherited from FeedItem
Instance Method Summary collapse
-
#initialize(item) ⇒ AtomItem
constructor
A new instance of AtomItem.
Methods inherited from FeedItem
Constructor Details
#initialize(item) ⇒ AtomItem
Returns a new instance of AtomItem.
66 67 68 69 70 71 |
# File 'lib/feed_parser/feed_item.rb', line 66 def initialize(item) @type = :atom super @link = item.xpath(Dsl[@type][:item_link]).attribute("href").text.strip @categories = item.xpath(Dsl[@type][:item_categories]).map{|cat| cat.attribute("term").text} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FeedParser::FeedItem