Class: RSS::Maker::RSS10::Items::Item

Inherits:
ItemBase
  • Object
show all
Defined in:
lib/rss/maker/1.0.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



234
235
236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/rss/maker/1.0.rb', line 234

def to_feed(rss)
  set_default_values do
    item = RDF::Item.new(link)
    set = setup_values(item)
    if set
      item.dc_dates.clear
      rss.items << item
      set_parent(item, rss)
      setup_other_elements(rss, item)
    elsif !have_required_values?
      raise NotSetError.new("maker.item", not_set_required_variables)
    end
  end
end