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
73 74 75 |
# File 'lib/ruby/rego/cli.rb', line 73 def @error_message end |
#outcome ⇒ Object
Returns the value of attribute outcome
73 74 75 |
# File 'lib/ruby/rego/cli.rb', line 73 def outcome @outcome end |
Instance Method Details
#success? ⇒ Boolean
Check whether evaluation succeeded.
80 81 82 |
# File 'lib/ruby/rego/cli.rb', line 80 def success? !!outcome && .to_s.empty? end |