Sha256: 9ba61bb00cee3adff916404e2aa5b88398a19993ecac1fdb26010cb48971b378

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

# -*- 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
consadole_aggregator-0.0.2 lib/consadole_aggregator/nikkan_sports/builder.rb
consadole_aggregator-0.0.0 lib/consadole_aggregator/nikkan_sports/builder.rb