Class: RSS::Maker::ITunesChannelModel::ITunesCategoriesBase::ITunesCategoryBase
- Inherits:
-
Base
- Object
- Base
- RSS::Maker::ITunesChannelModel::ITunesCategoriesBase::ITunesCategoryBase
- Defined in:
- lib/rss/maker/itunes.rb
Constant Summary
Constants inherited from Base
Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Base
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, 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
#text ⇒ Object
Returns the value of attribute text.
101 102 103 |
# File 'lib/rss/maker/itunes.rb', line 101 def text @text end |
Instance Method Details
#have_required_values? ⇒ Boolean
106 107 108 |
# File 'lib/rss/maker/itunes.rb', line 106 def have_required_values? text end |
#to_feed(feed, current) ⇒ Object
111 112 113 114 115 116 117 |
# 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 ⇒ Object
110 |
# File 'lib/rss/maker/itunes.rb', line 110 alias_method :to_feed_for_categories, :to_feed |