Class: Spree::RoleConfiguration::Role
- Inherits:
-
Object
- Object
- Spree::RoleConfiguration::Role
- Defined in:
- lib/spree/core/role_configuration.rb
Overview
An internal structure for the association between a role and a set of permissions.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permission_sets ⇒ Object
readonly
Returns the value of attribute permission_sets.
Instance Method Summary collapse
-
#initialize(name, permission_sets) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(name, permission_sets) ⇒ Role
Returns a new instance of Role.
23 24 25 26 27 |
# File 'lib/spree/core/role_configuration.rb', line 23 def initialize(name, ) @name = name = Spree::Core::ClassConstantizer::Set.new .concat end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/spree/core/role_configuration.rb', line 21 def name @name end |
#permission_sets ⇒ Object (readonly)
Returns the value of attribute permission_sets.
21 22 23 |
# File 'lib/spree/core/role_configuration.rb', line 21 def end |