Class: Clonk::Permission
- Inherits:
-
Object
- Object
- Clonk::Permission
- Defined in:
- lib/clonk/permission.rb
Overview
Represents a permission in SSO. Methods on Clonk::Connection can be used to index its policies, resources and associated scopes
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(permission_response) ⇒ Permission
constructor
A new instance of Permission.
Constructor Details
#initialize(permission_response) ⇒ Permission
Returns a new instance of Permission.
10 11 12 13 |
# File 'lib/clonk/permission.rb', line 10 def initialize() @id = ['id'] @name = ['name'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/clonk/permission.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/clonk/permission.rb', line 8 def name @name end |