Class: Magick::AdminUI::Configuration
- Inherits:
-
Object
- Object
- Magick::AdminUI::Configuration
- Defined in:
- lib/magick/admin_ui.rb
Instance Attribute Summary collapse
-
#available_roles ⇒ Object
Returns the value of attribute available_roles.
-
#brand_name ⇒ Object
Returns the value of attribute brand_name.
-
#require_role ⇒ Object
Returns the value of attribute require_role.
-
#theme ⇒ Object
Returns the value of attribute theme.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 |
# File 'lib/magick/admin_ui.rb', line 22 def initialize @theme = :light @brand_name = 'Magick' @require_role = nil @available_roles = [] # Can be populated via DSL: admin_ui { roles ['admin', 'user', 'manager'] } end |
Instance Attribute Details
#available_roles ⇒ Object
Returns the value of attribute available_roles.
20 21 22 |
# File 'lib/magick/admin_ui.rb', line 20 def available_roles @available_roles end |
#brand_name ⇒ Object
Returns the value of attribute brand_name.
20 21 22 |
# File 'lib/magick/admin_ui.rb', line 20 def brand_name @brand_name end |
#require_role ⇒ Object
Returns the value of attribute require_role.
20 21 22 |
# File 'lib/magick/admin_ui.rb', line 20 def require_role @require_role end |
#theme ⇒ Object
Returns the value of attribute theme.
20 21 22 |
# File 'lib/magick/admin_ui.rb', line 20 def theme @theme end |