Class: KeycloakAdmin::AttackDetectionRepresentation

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

#disabledObject

Returns the value of attribute disabled.



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

def disabled
  @disabled
end

#last_failureObject

Returns the value of attribute last_failure.



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

def last_failure
  @last_failure
end

#last_ip_failureObject

Returns the value of attribute last_ip_failure.



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

def last_ip_failure
  @last_ip_failure
end

#num_failuresObject

Returns the value of attribute num_failures.



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

def num_failures
  @num_failures
end

Class Method Details

.from_hash(hash) ⇒ Object



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

def self.from_hash(hash)
  rep                 = new
  rep.num_failures    = hash["numFailures"]
  rep.disabled        = hash["disabled"]
  rep.last_ip_failure = hash["lastIPFailure"]
  rep.last_failure    = hash["lastFailure"]
  rep
end