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.



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

def id
  @id
end

#realmObject

Returns the value of attribute realm.



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

def realm
  @realm
end

Class Method Details

.from_hash(hash) ⇒ Object

TODO: Add more attributes



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

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