Class: KeycloakAdmin::RoleRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::RoleRepresentation
- Defined in:
- lib/keycloak-admin/representation/role_representation.rb
Instance Attribute Summary collapse
-
#client_role ⇒ Object
Returns the value of attribute client_role.
-
#composite ⇒ Object
Returns the value of attribute composite.
-
#container_id ⇒ Object
Returns the value of attribute container_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Methods inherited from Representation
Methods included from CamelJson
Instance Attribute Details
#client_role ⇒ Object
Returns the value of attribute client_role.
4 5 6 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 4 def client_role @client_role end |
#composite ⇒ Object
Returns the value of attribute composite.
4 5 6 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 4 def composite @composite end |
#container_id ⇒ Object
Returns the value of attribute container_id.
4 5 6 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 4 def container_id @container_id end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 4 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/keycloak-admin/representation/role_representation.rb', line 10 def self.from_hash(hash) role = new role.id = hash["id"] role.name = hash["name"] role.composite = hash["composite"] role.client_role = hash["clientRole"] role.container_id = hash["containerId"] role end |