Class: ComfyArchive::Configuration
- Inherits:
-
Object
- Object
- ComfyArchive::Configuration
- Defined in:
- lib/comfy_archive/configuration.rb
Instance Attribute Summary collapse
-
#parameterize_category ⇒ Object
Parameterize category label in paths.
-
#posts_per_page ⇒ Object
Number of posts per page.
-
#strict_categories ⇒ Object
Generate 404 error or throw warning for invalid catgegories.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Configuration defaults.
Constructor Details
#initialize ⇒ Configuration
Configuration defaults
16 17 18 19 20 |
# File 'lib/comfy_archive/configuration.rb', line 16 def initialize @posts_per_page = 10 @parameterize_category = false @strict_categories = true end |
Instance Attribute Details
#parameterize_category ⇒ Object
Parameterize category label in paths. Default is false
10 11 12 |
# File 'lib/comfy_archive/configuration.rb', line 10 def parameterize_category @parameterize_category end |
#posts_per_page ⇒ Object
Number of posts per page. Default is 10
7 8 9 |
# File 'lib/comfy_archive/configuration.rb', line 7 def posts_per_page @posts_per_page end |
#strict_categories ⇒ Object
Generate 404 error or throw warning for invalid catgegories. Default is true
13 14 15 |
# File 'lib/comfy_archive/configuration.rb', line 13 def strict_categories @strict_categories end |