123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::RSS09::Image

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::Maker::ImageBase
Defined in: lib/rss/maker/0.9.rb

Constant Summary

::RSS::Maker::Base - Inherited

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from RSS::Maker::Base

Instance Attribute Details

#required_element?Boolean (readonly, private)

[ GitHub ]

  
# File 'lib/rss/maker/0.9.rb', line 243

def required_element?
  true
end

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/0.9.rb', line 239

def required_variable_names
  %w(url title link)
end

#to_feed(rss)

[ GitHub ]

  
# File 'lib/rss/maker/0.9.rb', line 225

def to_feed(rss)
  image = Rss::Channel::Image.new
  set = setup_values(image)
  if set
    image.link = link
    rss.channel.image = image
    set_parent(image, rss.channel)
    setup_other_elements(rss, image)
  elsif required_element?
    raise NotSetError.new("maker.image", not_set_required_variables)
  end
end