Class: KnowledgeBase::Configuration
- Inherits:
-
Object
- Object
- KnowledgeBase::Configuration
- Defined in:
- lib/knowledge_base/configuration.rb
Instance Attribute Summary collapse
-
#articles_path ⇒ Object
Returns the value of attribute articles_path.
-
#categories_path ⇒ Object
Returns the value of attribute categories_path.
-
#gallery_image_uploader ⇒ Object
Returns the value of attribute gallery_image_uploader.
-
#image_image_uploader ⇒ Object
Returns the value of attribute image_image_uploader.
-
#list_image_uploader ⇒ Object
Returns the value of attribute list_image_uploader.
-
#section_styles ⇒ Object
Returns the value of attribute section_styles.
-
#text_image_uploader ⇒ Object
Returns the value of attribute text_image_uploader.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 |
# File 'lib/knowledge_base/configuration.rb', line 6 def initialize @categories_path = 'categories' @articles_path = 'articles' @text_image_uploader = KnowledgeBase::ImageUploader @image_image_uploader = KnowledgeBase::ImageUploader @gallery_image_uploader = KnowledgeBase::ImageUploader @list_image_uploader = KnowledgeBase::ImageUploader @section_styles = { } end |
Instance Attribute Details
#articles_path ⇒ Object
Returns the value of attribute articles_path.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def articles_path @articles_path end |
#categories_path ⇒ Object
Returns the value of attribute categories_path.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def categories_path @categories_path end |
#gallery_image_uploader ⇒ Object
Returns the value of attribute gallery_image_uploader.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def gallery_image_uploader @gallery_image_uploader end |
#image_image_uploader ⇒ Object
Returns the value of attribute image_image_uploader.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def image_image_uploader @image_image_uploader end |
#list_image_uploader ⇒ Object
Returns the value of attribute list_image_uploader.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def list_image_uploader @list_image_uploader end |
#section_styles ⇒ Object
Returns the value of attribute section_styles.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def section_styles @section_styles end |
#text_image_uploader ⇒ Object
Returns the value of attribute text_image_uploader.
3 4 5 |
# File 'lib/knowledge_base/configuration.rb', line 3 def text_image_uploader @text_image_uploader end |