123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::ITunesChannelModel::ITunesCategoriesBase::ITunesCategoryBase

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::Maker::Base
  • Object
Defined in: lib/rss/maker/itunes.rb

Constant Summary

::RSS::Maker::Base - Inherited

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

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

Instance Attribute Details

#have_required_values?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/itunes.rb', line 106

def have_required_values?
  text
end

#text (rw)

[ GitHub ]

  
# File 'lib/rss/maker/itunes.rb', line 101

attr_accessor :text

Instance Method Details

#to_feed(feed, current)

[ GitHub ]

  
# File 'lib/rss/maker/itunes.rb', line 111

def to_feed(feed, current)
  if text and current.respond_to?(:itunes_category)
    new_item = current.class::ITunesCategory.new(text)
    to_feed_for_categories(feed, new_item)
    current.itunes_categories << new_item
  end
end

#to_feed_for_categories

[ GitHub ]

  
# File 'lib/rss/maker/itunes.rb', line 110

alias_method :to_feed_for_categories, :to_feed