Class: ZnyxSdk::RuleHit
- Inherits:
-
Object
- Object
- ZnyxSdk::RuleHit
- Defined in:
- lib/znyx_sdk/models.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#rule_id ⇒ Object
readonly
Returns the value of attribute rule_id.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(data) ⇒ RuleHit
constructor
A new instance of RuleHit.
Constructor Details
#initialize(data) ⇒ RuleHit
Returns a new instance of RuleHit.
38 39 40 41 42 |
# File 'lib/znyx_sdk/models.rb', line 38 def initialize(data) @rule_id = data["rule_id"] @severity = data["severity"] @message = data["message"] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
36 37 38 |
# File 'lib/znyx_sdk/models.rb', line 36 def @message end |
#rule_id ⇒ Object (readonly)
Returns the value of attribute rule_id.
36 37 38 |
# File 'lib/znyx_sdk/models.rb', line 36 def rule_id @rule_id end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
36 37 38 |
# File 'lib/znyx_sdk/models.rb', line 36 def severity @severity end |