Class
Instance Methods
lib/rss/maker/0.9.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/maker/0.9.rb, line 243
def required_element?
true
end
No documentation available
lib/rss/maker/0.9.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rss/maker/0.9.rb, line 239
def required_variable_names
%w(url title link)
end
No documentation available
lib/rss/maker/0.9.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/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
No documentation available