Class: KeycloakAdmin::RealmRepresentation

Inherits:
Representation show all
Defined in:
lib/keycloak-admin/representation/realm_representation.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Representation

#as_json, from_json, #to_json

Methods included from CamelJson

#camelize

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/keycloak-admin/representation/realm_representation.rb', line 3

def id
  @id
end

#realmObject

Returns the value of attribute realm.



3
4
5
# File 'lib/keycloak-admin/representation/realm_representation.rb', line 3

def realm
  @realm
end

Class Method Details

.from_hash(hash) ⇒ Object

TODO: Add more attributes



7
8
9
10
11
12
# File 'lib/keycloak-admin/representation/realm_representation.rb', line 7

def self.from_hash(hash)
  realm       = new
  realm.id    = hash["id"]
  realm.realm = hash["realm"]
  realm
end