Class: KeycloakAdmin::ClientAuthzPolicyConfigRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::ClientAuthzPolicyConfigRepresentation
- Defined in:
- lib/keycloak-admin/representation/client_authz_policy_config_representation.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#roles ⇒ Object
Returns the value of attribute roles.
Class Method Summary collapse
Methods inherited from Representation
Methods included from CamelJson
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_config_representation.rb', line 3 def code @code end |
#roles ⇒ Object
Returns the value of attribute roles.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_config_representation.rb', line 3 def roles @roles end |
Class Method Details
.from_hash(hash) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/keycloak-admin/representation/client_authz_policy_config_representation.rb', line 6 def self.from_hash(hash) resource = new resource.code = hash["code"] resource.roles = JSON.parse(hash["roles"] || '[]').map do |str| RoleRepresentation.from_hash(str) end resource end |