Class: RSS::Maker::Atom::Feed::Image

Inherits:
ImageBase show all
Defined in:
lib/rss/maker/feed.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, #have_required_values?, 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

#to_feed(feed) ⇒ Object



148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/rss/maker/feed.rb', line 148

def to_feed(feed)
   = feed.class::Logo.new
  class << 
    alias_method(:url=, :content=)
  end
  set = setup_values()
  class << 
    remove_method(:url=)
  end
  if set
    feed. = 
    set_parent(, feed)
    setup_other_elements(feed, )
  elsif variable_is_set?
    raise NotSetError.new("maker.image", not_set_required_variables)
  end
end