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
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
- #required_element? ⇒ Boolean readonly private
::RSS::Maker::Base - Inherited
Instance Method Summary
::RSS::Maker::ImageBase - Inherited
::RSS::Maker::Base - Inherited
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