Class: KeycloakAdmin::ClientScopeRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::ClientScopeRepresentation
- Defined in:
- lib/keycloak-admin/representation/client_scope_representation.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#protocol_mappers ⇒ Object
Returns the value of attribute protocol_mappers.
Class Method Summary collapse
Methods inherited from Representation
Methods included from CamelJson
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def attributes @attributes end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def name @name end |
#protocol ⇒ Object
Returns the value of attribute protocol.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def protocol @protocol end |
#protocol_mappers ⇒ Object
Returns the value of attribute protocol_mappers.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 3 def protocol_mappers @protocol_mappers end |
Class Method Details
.from_hash(hash) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/keycloak-admin/representation/client_scope_representation.rb', line 10 def self.from_hash(hash) rep = new rep.id = hash["id"] rep.name = hash["name"] rep.description = hash["description"] rep.protocol = hash["protocol"] rep.attributes = hash["attributes"] rep.protocol_mappers = (hash["protocolMappers"] || []).map { |m| ProtocolMapperRepresentation.from_hash(m) } rep end |