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

Inherits:
ImageBase show all
Defined in:
lib/rss/maker/0.9.rb,
lib/rss/maker/dublincore.rb

Direct Known Subclasses

RSS::Maker::RSS20::Image

Instance Method Summary collapse

Methods inherited from ImageBase

#current_element, #link

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods included from Base

append_features, #initialize

Instance Method Details

#have_required_values?Boolean

Returns:

  • (Boolean)


148
149
150
# File 'lib/rss/maker/0.9.rb', line 148

def have_required_values?
  @url and @title and link
end

#to_rss(rss) ⇒ Object



138
139
140
141
142
143
144
145
146
# File 'lib/rss/maker/0.9.rb', line 138

def to_rss(rss)
  image = Rss::Channel::Image.new
  set = setup_values(image)
  if set
    image.link = link
    rss.channel.image = image
    setup_other_elements(rss)
  end
end