Module: RSS::ITunesItemModel

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

Defined Under Namespace

Classes: ITunesDuration, ITunesImage

Constant Summary collapse

ELEMENT_INFOS =
ITunesBaseModel::ELEMENT_INFOS +
[
  ["duration", :element, "content"],
  ["image", :attribute, "href"],
  ["season", :positive_integer],
  ["episode", :positive_integer],
  ["episodeType", :itunes_episode_type],
  ["title"],
]

Constants included from ITunesBaseModel

RSS::ITunesBaseModel::ELEMENTS

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



252
253
254
255
256
257
258
259
# File 'lib/rss/itunes.rb', line 252

def append_features(klass)
  super

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