Class: RSS::Maker::RSS09::Items::Item
- Inherits:
-
ItemBase
- Object
- ItemBase
- RSS::Maker::RSS09::Items::Item
- Defined in:
- lib/rss/maker/0.9.rb
Direct Known Subclasses
RSS::Maker::RSS091::Items::Item, RSS::Maker::RSS092::Items::Item, RSS::Maker::RSS20::Items::Item
Defined Under Namespace
Classes: Authors, Categories, Content, Contributors, Description, Enclosure, Guid, Links, Rights, Source, Title
Instance Method Summary collapse
Instance Method Details
#to_feed(rss) ⇒ Object
258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/rss/maker/0.9.rb', line 258 def to_feed(rss) item = Rss::Channel::Item.new set = setup_values(item) _not_set_required_variables = not_set_required_variables if _not_set_required_variables.empty? rss.items << item set_parent(item, rss.channel) setup_other_elements(rss, item) elsif variable_is_set? raise NotSetError.new("maker.items", _not_set_required_variables) end end |