Class: ComfyArchive::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/comfy_archive/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_categoryObject

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_pageObject

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_categoriesObject

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