Module: RSS::ITunesChannelModel

Extended by:
BaseModel, ITunesModelUtils
Includes:
ITunesBaseModel
Included in:
Rss::Channel
Defined in:
lib/rss/itunes.rb

Defined Under Namespace

Classes: ITunesCategory, ITunesImage, ITunesOwner

Constant Summary collapse

ELEMENTS =
[]
ELEMENT_INFOS =
[
 ["category", :elements, "categories", "text"],
 ["image", :attribute, "href"],
 ["owner", :element],
 ["new-feed-url"],
 ["type", :itunes_episode],
 ["title"],
] + ITunesBaseModel::ELEMENT_INFOS

Class Method Summary collapse

Methods included from BaseModel

install_date_element, install_have_child_element, install_have_children_element, install_text_element

Methods included from Utils

element_initialize_arguments?, get_file_and_line_from_caller, new_with_value_if_need, to_class_name

Methods included from ITunesModelUtils

def_class_accessor, def_element_class_accessor, def_elements_class_accessor

Class Method Details

.append_features(klass) ⇒ Object



68
69
70
71
72
73
74
75
# File 'lib/rss/itunes.rb', line 68

def append_features(klass)
  super

  return if klass.instance_of?(Module)
  ELEMENT_INFOS.each do |name, type, *additional_infos|
    def_class_accessor(klass, name, type, *additional_infos)
  end
end