Class: KeycloakAdmin::AttackDetectionRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::AttackDetectionRepresentation
- Defined in:
- lib/keycloak-admin/representation/attack_detection_representation.rb
Instance Attribute Summary collapse
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#last_failure ⇒ Object
Returns the value of attribute last_failure.
-
#last_ip_failure ⇒ Object
Returns the value of attribute last_ip_failure.
-
#num_failures ⇒ Object
Returns the value of attribute num_failures.
Class Method Summary collapse
Methods inherited from Representation
Methods included from CamelJson
Instance Attribute Details
#disabled ⇒ Object
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_failure ⇒ Object
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_failure ⇒ Object
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_failures ⇒ Object
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 |