Class: RSS::Maker::RSS09::Channel

Inherits:
ChannelBase show all
Defined in:
lib/rss/maker/0.9.rb

Defined Under Namespace

Classes: Authors, Categories, Cloud, Contributors, Copyright, Description, Generator, Links, SkipDays, SkipHours, Title

Constant Summary

Constants inherited from Base

Base::NEED_INITIALIZE_VARIABLES, Base::OTHER_ELEMENTS

Instance Attribute Summary

Attributes inherited from Base

#maker

Instance Method Summary collapse

Methods inherited from ChannelBase

#date=, #icon, #icon=, #lastBuildDate=, #logo, #logo=, #pubDate, #pubDate=, #updated, #updated=

Methods included from SyndicationModel

append_features

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods included from TaxonomyTopicsModel

append_features, install_taxo_topics

Methods included from ITunesChannelModel

append_features

Methods included from ITunesBaseModel

#def_class_accessor, #def_csv_accessor, #def_elements_class_accessor, #def_explicit_clean_other_accessor, #def_yes_other_accessor

Methods included from ImageFaviconModel

append_features, install_image_favicon

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, #have_required_values?, 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 Method Details

#to_feed(rss) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/rss/maker/0.9.rb', line 26

def to_feed(rss)
  channel = Rss::Channel.new
  setup_values(channel)
  _not_set_required_variables = not_set_required_variables
  if _not_set_required_variables.empty?
    rss.channel = channel
    set_parent(channel, rss)
    setup_items(rss)
    setup_image(rss)
    setup_textinput(rss)
    setup_other_elements(rss, channel)
    rss
  else
    raise NotSetError.new("maker.channel", _not_set_required_variables)
  end
end