Class: Magick::AdminUI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/magick/admin_ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_rolesObject

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_nameObject

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_roleObject

Returns the value of attribute require_role.



20
21
22
# File 'lib/magick/admin_ui.rb', line 20

def require_role
  @require_role
end

#themeObject

Returns the value of attribute theme.



20
21
22
# File 'lib/magick/admin_ui.rb', line 20

def theme
  @theme
end