# -*- coding: utf-8 -*- require 'rss' module ConsadoleAggregator module NikkanSports module Builder module Rss def Rss.build entries RSS::Maker.make('atom') do |maker| maker.channel.about = 'http://sirase.ru/consadole/nikkansports_consadole.rdf' maker.channel.title = 'コンサドーレ札幌:nikkansports.com(非公式RSS版)' maker.channel.description = 'コンサドーレ札幌:nikkansports.comのニュース一覧(非公式RSS版)' maker.channel.link = 'http://www.nikkansports.com/soccer/jleague/team/co-team.html' maker.channel.author = 'ConsadoleAggregator' maker.channel.date = Time.now maker.items.do_sort = true entries.each do |entry| maker.items.new_item do |item| yield item, entry end end end end end end end end