Class: KeycloakAdmin::ProtocolMapperRepresentation

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



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

def config
  @config
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

#protocolMapperObject

Returns the value of attribute protocolMapper.



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

def protocolMapper
  @protocolMapper
end

Class Method Details

.from_hash(hash) ⇒ Object



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

def self.from_hash(hash)
  rep                 = new
  rep.id              = hash["id"]
  rep.config          = hash["config"]
  rep.name            = hash["name"]
  rep.protocol        = hash["protocol"]
  rep.protocolMapper = hash["protocolMapper"]
  rep
end