Class: SDM::RoleGrant
- Inherits:
-
Object
- Object
- SDM::RoleGrant
- Defined in:
- lib/models/porcelain.rb
Overview
A RoleGrant connects a resource to a role, granting members of the role access to that resource.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the RoleGrant.
-
#resource_id ⇒ Object
The id of the resource of this RoleGrant.
-
#role_id ⇒ Object
The id of the attached role of this RoleGrant.
Instance Method Summary collapse
-
#initialize(id: nil, resource_id: nil, role_id: nil) ⇒ RoleGrant
constructor
A new instance of RoleGrant.
Constructor Details
#initialize(id: nil, resource_id: nil, role_id: nil) ⇒ RoleGrant
Returns a new instance of RoleGrant.
3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 |
# File 'lib/models/porcelain.rb', line 3890 def initialize( id:nil \ , resource_id:nil \ , role_id:nil \ ) if id != nil @id = id end if resource_id != nil @resource_id = resource_id end if role_id != nil @role_id = role_id end end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the RoleGrant.
3885 3886 3887 |
# File 'lib/models/porcelain.rb', line 3885 def id @id end |
#resource_id ⇒ Object
The id of the resource of this RoleGrant.
3887 3888 3889 |
# File 'lib/models/porcelain.rb', line 3887 def resource_id @resource_id end |
#role_id ⇒ Object
The id of the attached role of this RoleGrant.
3889 3890 3891 |
# File 'lib/models/porcelain.rb', line 3889 def role_id @role_id end |