Class: Faun::Subtopic
- Inherits:
-
SectionWithMeta
- Object
- Section
- SectionWithMeta
- Faun::Subtopic
- Defined in:
- lib/faun.rb
Instance Attribute Summary
Attributes inherited from SectionWithMeta
Attributes inherited from Section
Instance Method Summary collapse
-
#initialize(id, name, path) ⇒ Subtopic
constructor
A new instance of Subtopic.
- #item_name ⇒ Object
- #posts ⇒ Object
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_name ⇒ Object
131 132 133 |
# File 'lib/faun.rb', line 131 def item_name "posts" end |
#posts ⇒ Object
127 128 129 |
# File 'lib/faun.rb', line 127 def posts @items end |