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
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/spree/core/role_configuration.rb', line 23 def name @name end |
#permission_sets ⇒ Object (readonly)
Returns the value of attribute permission_sets.
23 24 25 |
# File 'lib/spree/core/role_configuration.rb', line 23 def @permission_sets end |