Class: RSS::Maker::ITunesChannelModel::ITunesImageBase

Inherits:
Base
  • Object
show all
Defined in:
lib/rss/maker/itunes.rb

Constant Summary

Constants inherited from Base

Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS

Instance Attribute Summary collapse

Attributes inherited from Base

#maker

Instance Method Summary collapse

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 Attribute Details

#hrefObject

Returns the value of attribute href



120
121
122
# File 'lib/rss/maker/itunes.rb', line 120

def href
  @href
end

Instance Method Details

#to_feed(feed, current) ⇒ Object



122
123
124
125
126
127
# File 'lib/rss/maker/itunes.rb', line 122

def to_feed(feed, current)
  if @href and current.respond_to?(:itunes_image)
    current.itunes_image ||= current.class::ITunesImage.new
    current.itunes_image.href = @href
  end
end