123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::Maker::RSS09::Items::Item::Enclosure
Defined in: lib/rss/maker/2.0.rb

Instance Method Summary

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/2.0.rb', line 141

def required_variable_names
  %w(url length type)
end

#to_feed(rss, item)

[ GitHub ]

  
# File 'lib/rss/maker/2.0.rb', line 130

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