Class: RSS::Maker::RSS20::Items::Item::Enclosure

Inherits:
RSS::Maker::RSS09::Items::Item::Enclosure show all
Defined in:
lib/rss/maker/2.0.rb

Instance Method Summary collapse

Instance Method Details

#to_feed(rss, item) ⇒ Object



131
132
133
134
135
136
137
138
139
# File 'lib/rss/maker/2.0.rb', line 131

def to_feed(rss, item)
  enclosure = Rss::Channel::Item::Enclosure.new
  set = setup_values(enclosure)
  if set
    item.enclosure = enclosure
    set_parent(enclosure, item)
    setup_other_elements(rss, enclosure)
  end
end