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

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

Defined Under Namespace

Classes: Hour

Instance Method Summary collapse

Instance Method Details

#to_feed(rss, channel) ⇒ Object



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

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