Class: Rtlog::RssPage

Inherits:
IndexPage show all
Defined in:
lib/rtlog/pages.rb

Instance Attribute Summary

Attributes inherited from Page

#config, #log, #logger

Instance Method Summary collapse

Methods inherited from IndexPage

#recent_day_pages, #title

Methods inherited from Page

#config_dir, #index_url, #initialize, #month_pages, #parse, #size, #template_path

Constructor Details

This class inherits a constructor from Rtlog::Page

Instance Method Details

#file_pathObject



123
124
125
# File 'lib/rtlog/pages.rb', line 123

def file_path
  File.expand_path( File.join(config['target_dir'], 'feed', 'rss.xml') )
end

#generateObject



131
132
133
# File 'lib/rtlog/pages.rb', line 131

def generate
  super(:layout => nil)
end

#page_nameObject



127
128
129
# File 'lib/rtlog/pages.rb', line 127

def page_name
  'rss'
end

#template_file_nameObject



135
136
137
# File 'lib/rtlog/pages.rb', line 135

def template_file_name
  'rss.xml.erb'
end

#urlObject



119
120
121
# File 'lib/rtlog/pages.rb', line 119

def url
  config['url_prefix'] + '/feed/rss'
end