Class: RSS::Maker::ImageFaviconModel::ImageFaviconBase
- Includes:
- DublinCoreModel
- Defined in:
- lib/rss/maker/image.rb
Constant Summary
Constants inherited from Base
Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS
Instance Attribute Summary collapse
-
#about ⇒ Object
Returns the value of attribute about.
-
#image_size ⇒ Object
(also: #size)
Returns the value of attribute image_size.
Attributes inherited from Base
Instance Method Summary collapse
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 Attribute Details
#about ⇒ Object
Returns the value of attribute about.
71 72 73 |
# File 'lib/rss/maker/image.rb', line 71 def about @about end |
#image_size ⇒ Object Also known as: size
Returns the value of attribute image_size.
71 72 73 |
# File 'lib/rss/maker/image.rb', line 71 def image_size @image_size end |
Instance Method Details
#have_required_values? ⇒ Boolean
77 78 79 |
# File 'lib/rss/maker/image.rb', line 77 def have_required_values? @about and @image_size end |
#to_feed(feed, current) ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/rss/maker/image.rb', line 81 def to_feed(feed, current) if current.respond_to?(:image_favicon=) and have_required_values? favicon = current.class::ImageFavicon.new setup_values(favicon) setup_other_elements(favicon) current.image_favicon = favicon end end |