Class: RegoValidate::EvaluationResult
- Inherits:
-
Struct
- Object
- Struct
- RegoValidate::EvaluationResult
- Defined in:
- lib/ruby/rego/cli.rb,
lib/ruby/rego/cli.rb
Overview
Policy evaluation outcome with optional error message.
Instance Attribute Summary collapse
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#outcome ⇒ Object
Returns the value of attribute outcome.
Instance Method Summary collapse
-
#success? ⇒ Boolean
Check whether evaluation succeeded.
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message
78 79 80 |
# File 'lib/ruby/rego/cli.rb', line 78 def @error_message end |
#outcome ⇒ Object
Returns the value of attribute outcome
78 79 80 |
# File 'lib/ruby/rego/cli.rb', line 78 def outcome @outcome end |
Instance Method Details
#success? ⇒ Boolean
Check whether evaluation succeeded.
85 86 87 |
# File 'lib/ruby/rego/cli.rb', line 85 def success? !!outcome && .to_s.empty? end |