Class: SDM::Role
- Inherits:
-
Object
- Object
- SDM::Role
- Defined in:
- lib/models/porcelain.rb
Overview
A Role is a collection of permissions, and typically corresponds to a team, Active Directory OU, or other organizational unit. Users are granted access to resources by assigning them to roles.
Instance Attribute Summary collapse
-
#composite ⇒ Object
True if the Role is a composite role.
-
#id ⇒ Object
Unique identifier of the Role.
-
#name ⇒ Object
Unique human-readable name of the Role.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, composite: nil) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(id: nil, name: nil, composite: nil) ⇒ Role
Returns a new instance of Role.
4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 |
# File 'lib/models/porcelain.rb', line 4015 def initialize( id:nil \ , name:nil \ , composite:nil \ ) if id != nil @id = id end if name != nil @name = name end if composite != nil @composite = composite end end |
Instance Attribute Details
#composite ⇒ Object
True if the Role is a composite role.
4014 4015 4016 |
# File 'lib/models/porcelain.rb', line 4014 def composite @composite end |
#id ⇒ Object
Unique identifier of the Role.
4010 4011 4012 |
# File 'lib/models/porcelain.rb', line 4010 def id @id end |
#name ⇒ Object
Unique human-readable name of the Role.
4012 4013 4014 |
# File 'lib/models/porcelain.rb', line 4012 def name @name end |