Class: Genit::RssFeedMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/genit/project/rss_feed.rb

Overview

Meta data of an RSS Field

Class Method Summary collapse

Class Method Details

.fill(feed, config) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/genit/project/rss_feed.rb', line 39

def self.fill feed, config
  channel = feed.channel
  channel.title = config[:rss_title]
  channel.link = config[:address]
  channel.description = config[:rss_description]
  feed.items.do_sort = true
end