Class: RSS::Maker::ITunesChannelModel::ITunesOwnerBase
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
::RSS::Maker::Base
|
|
Inherits: |
RSS::Maker::Base
|
Defined in: | lib/rss/maker/itunes.rb |
Constant Summary
::RSS::Maker::Base - Inherited
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
::RSS::Maker::Base - Inherited
Instance Method Summary
::RSS::Maker::Base - Inherited
Constructor Details
This class inherits a constructor from RSS::Maker::Base
Instance Method Details
#required_variable_names (private)
[ GitHub ]# File 'lib/rss/maker/itunes.rb', line 154
def required_variable_names %w(itunes_name itunes_email) end
#to_feed(feed, current)
[ GitHub ]# File 'lib/rss/maker/itunes.rb', line 136
def to_feed(feed, current) if current.respond_to?(:itunes_owner=) _not_set_required_variables = not_set_required_variables if (required_variable_names - _not_set_required_variables).empty? return end unless have_required_values? raise NotSetError.new("maker.channel.itunes_owner", _not_set_required_variables) end current.itunes_owner ||= current.class::ITunesOwner.new current.itunes_owner.itunes_name = @itunes_name current.itunes_owner.itunes_email = @itunes_email end end