Class: RSS::Maker::RSS10::Image

Inherits:
ImageBase show all
Defined in:
lib/rss/maker/1.0.rb

Constant Summary

Constants inherited from Base

Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS

Instance Attribute Summary

Attributes inherited from Base

#maker

Instance Method Summary collapse

Methods inherited from ImageBase

#link

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods inherited from Base

add_need_initialize_variable, add_other_element, def_array_element, def_classed_element, def_classed_element_without_accessor, def_classed_elements, def_csv_element, def_other_element, def_other_element_without_accessor, inherited, inherited_base, #initialize, need_initialize_variables, other_elements, #variable_is_set?

Methods included from Utils::InheritedReader

#inherited_array_reader, #inherited_hash_reader, #inherited_reader

Constructor Details

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

Instance Method Details

#have_required_values?Boolean

Returns:

  • (Boolean)


209
210
211
# File 'lib/rss/maker/1.0.rb', line 209

def have_required_values?
  super and @maker.channel.have_required_values?
end

#to_feed(rss) ⇒ Object



197
198
199
200
201
202
203
204
205
206
207
# File 'lib/rss/maker/1.0.rb', line 197

def to_feed(rss)
  if @url
    image = RDF::Image.new(@url)
    set = setup_values(image)
    if set
      rss.image = image
      set_parent(image, rss)
      setup_other_elements(rss, image)
    end
  end
end