Class: KeycloakAdmin::FederatedIdentityRepresentation

Inherits:
Representation
  • Object
show all
Defined in:
lib/keycloak-admin/representation/federated_identity_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

#identity_providerObject

Returns the value of attribute identity_provider.



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

def identity_provider
  @identity_provider
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

#user_nameObject

Returns the value of attribute user_name.



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

def user_name
  @user_name
end

Class Method Details

.from_hash(hash) ⇒ Object



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

def self.from_hash(hash)
  rep                   = new
  rep.identity_provider = hash["identityProvider"]
  rep.user_id           = hash["userId"]
  rep.user_name         = hash["userName"]
  rep
end