Class: Ddr::Auth::Roles::RoleType
- Inherits:
-
Object
- Object
- Ddr::Auth::Roles::RoleType
- Defined in:
- lib/ddr/auth/roles/role_type.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
#title ⇒ Object
(also: #label)
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, description, permissions) ⇒ RoleType
constructor
A new instance of RoleType.
- #to_s ⇒ Object
Constructor Details
#initialize(title, description, permissions) ⇒ RoleType
Returns a new instance of RoleType.
9 10 11 12 13 14 |
# File 'lib/ddr/auth/roles/role_type.rb', line 9 def initialize(title, description, ) @title = title.freeze @description = description.freeze @permissions = .freeze freeze end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/ddr/auth/roles/role_type.rb', line 6 def description @description end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
6 7 8 |
# File 'lib/ddr/auth/roles/role_type.rb', line 6 def @permissions end |
#title ⇒ Object (readonly) Also known as: label
Returns the value of attribute title.
6 7 8 |
# File 'lib/ddr/auth/roles/role_type.rb', line 6 def title @title end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/ddr/auth/roles/role_type.rb', line 16 def to_s title end |