Class: KeycloakAdmin::IdentityProviderMapperRepresentation

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

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#identity_provider_aliasObject

Returns the value of attribute identity_provider_alias.



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

def identity_provider_alias
  @identity_provider_alias
end

#identity_provider_mapperObject

Returns the value of attribute identity_provider_mapper.



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

def identity_provider_mapper
  @identity_provider_mapper
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/keycloak-admin/representation/identity_provider_mapper_representation.rb', line 9

def self.from_hash(hash)
  client                           = new
  client.id                        = hash["id"]
  client.name                      = hash["name"]
  client.identity_provider_alias   = hash["identityProviderAlias"]
  client.identity_provider_mapper  = hash["identityProviderMapper"]
  client.config                    = hash["config"]
  client
end