class SeoApp::Configuration
Main confoguration class for app
Attributes
database[R]
db_host[RW]
Db configuration
db_name[RW]
db_password[RW]
db_port[RW]
db_user[RW]
reports_folder[RW]
Files Storage
Public Class Methods
new()
click to toggle source
# File lib/seo_app/configuration.rb, line 26 def initialize @reports_folder = '/public/reports/' end
Public Instance Methods
database_type=(_type)
click to toggle source
# File lib/seo_app/configuration.rb, line 30 def database_type=(_type) case _type when 'postgres' SeoApp::Storage.database = SeoApp::PgStorage.new @database_type = 'postgres' when 'files' SeoApp::Storage.database = SeoApp::FileStorage.new @database_type = 'files' end end