Class: Aardi::AbstractFeed

Inherits:
AbstractBlog show all
Defined in:
lib/aardi/abstract_feed.rb

Direct Known Subclasses

ATOMFeed, JSONFeed

Instance Attribute Summary

Attributes inherited from AbstractBlog

#key

Instance Method Summary collapse

Methods inherited from AbstractBlog

#metadata, #mtime

Constructor Details

#initialize(posts) ⇒ AbstractFeed

Returns a new instance of AbstractFeed.



5
6
7
# File 'lib/aardi/abstract_feed.rb', line 5

def initialize(posts)
  @posts = posts
end

Instance Method Details

#renderObject



9
10
11
# File 'lib/aardi/abstract_feed.rb', line 9

def render
  write_target
end

#target_pathObject



13
# File 'lib/aardi/abstract_feed.rb', line 13

def target_path = "./#{feed_file}"