Class: RSS::Maker::RSS20::Items::Item::Source

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

Defined Under Namespace

Classes: Links

Instance Method Summary collapse

Instance Method Details

#to_feed(rss, item) ⇒ Object



147
148
149
150
151
152
153
154
155
# File 'lib/rss/maker/2.0.rb', line 147

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