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.



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

def config
  @config
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

#protocolMapperObject

Returns the value of attribute protocolMapper.



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

def protocolMapper
  @protocolMapper
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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