Class: Faun::Subtopic

Inherits:
SectionWithMeta show all
Defined in:
lib/faun.rb

Instance Attribute Summary

Attributes inherited from SectionWithMeta

#meta

Attributes inherited from Section

#id, #items, #name

Instance Method Summary collapse

Methods inherited from Section

#each, #each_key, #each_value, #to_json

Constructor Details

#initialize(id, name, path) ⇒ Subtopic

Returns a new instance of Subtopic.



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

def initialize(id, name, path)
  super(id, name, path, Post)
end

Instance Method Details

#item_nameObject



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

def item_name
  "posts"
end

#postsObject



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

def posts
  @items
end