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

Inherits:
SkipHoursBase
  • Object
show all
Defined in:
lib/rss/maker/0.9.rb

Direct Known Subclasses

RSS::Maker::RSS20::Channel::SkipHours

Defined Under Namespace

Classes: Hour

Instance Method Summary collapse

Instance Method Details

#to_feed(rss, channel) ⇒ Object



102
103
104
105
106
107
108
109
110
111
# File 'lib/rss/maker/0.9.rb', line 102

def to_feed(rss, channel)
  unless @hours.empty?
    skipHours = Rss::Channel::SkipHours.new
    channel.skipHours = skipHours
    set_parent(skipHours, channel)
    @hours.each do |hour|
      hour.to_feed(rss, skipHours.hours)
    end
  end
end