Class: Clonk::Role
- Inherits:
-
Object
- Object
- Clonk::Role
- Defined in:
- lib/clonk/role.rb
Overview
Represents a role within SSO.
Instance Attribute Summary collapse
-
#container_id ⇒ Object
Returns the value of attribute container_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(role_response) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(role_response) ⇒ Role
Returns a new instance of Role.
10 11 12 13 14 |
# File 'lib/clonk/role.rb', line 10 def initialize(role_response) @id = role_response['id'] @container_id = role_response['containerId'] @name = role_response['name'] end |
Instance Attribute Details
#container_id ⇒ Object
Returns the value of attribute container_id.
7 8 9 |
# File 'lib/clonk/role.rb', line 7 def container_id @container_id end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/clonk/role.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/clonk/role.rb', line 8 def name @name end |