Class: ZenAdmin::Configuration
- Inherits:
-
Object
- Object
- ZenAdmin::Configuration
- Defined in:
- lib/zen_admin/configuration.rb
Instance Attribute Summary collapse
-
#admin_path ⇒ Object
Returns the value of attribute admin_path.
-
#audit_log_enable ⇒ Object
Returns the value of attribute audit_log_enable.
-
#custom_dashboard ⇒ Object
Returns the value of attribute custom_dashboard.
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
-
#enable_ui ⇒ Object
Returns the value of attribute enable_ui.
-
#password ⇒ Object
Returns the value of attribute password.
-
#rbac_enable ⇒ Object
Returns the value of attribute rbac_enable.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/zen_admin/configuration.rb', line 5 def initialize @enable_ui = true @admin_path = "/admin" @username = "admin" @password = "password" @rbac_enable = false @default_locale = :"zh-CN" @custom_dashboard = nil @audit_log_enable = true @time_zone = "Beijing" end |
Instance Attribute Details
#admin_path ⇒ Object
Returns the value of attribute admin_path.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def admin_path @admin_path end |
#audit_log_enable ⇒ Object
Returns the value of attribute audit_log_enable.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def audit_log_enable @audit_log_enable end |
#custom_dashboard ⇒ Object
Returns the value of attribute custom_dashboard.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def custom_dashboard @custom_dashboard end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def default_locale @default_locale end |
#enable_ui ⇒ Object
Returns the value of attribute enable_ui.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def enable_ui @enable_ui end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def password @password end |
#rbac_enable ⇒ Object
Returns the value of attribute rbac_enable.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def rbac_enable @rbac_enable end |
#time_zone ⇒ Object
Returns the value of attribute time_zone.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def time_zone @time_zone end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/zen_admin/configuration.rb', line 3 def username @username end |