Class: RSS::Maker::RSS09::Items::Item

Inherits:
ItemBase
  • Object
show all
Defined in:
lib/rss/maker/0.9.rb

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



259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/rss/maker/0.9.rb', line 259

def to_feed(rss)
  item = Rss::Channel::Item.new
  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