Class: Wonk::PolicyValidators::AwsEC2::RuleResult
- Inherits:
-
Object
- Object
- Wonk::PolicyValidators::AwsEC2::RuleResult
- Defined in:
- lib/wonk/policy_validators/aws_ec2/rule_result.rb
Instance Attribute Summary collapse
-
#captures ⇒ Object
readonly
Returns the value of attribute captures.
Instance Method Summary collapse
-
#initialize(successful:, captures: nil) ⇒ RuleResult
constructor
A new instance of RuleResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(successful:, captures: nil) ⇒ RuleResult
Returns a new instance of RuleResult.
7 8 9 10 11 |
# File 'lib/wonk/policy_validators/aws_ec2/rule_result.rb', line 7 def initialize(successful:, captures: nil) @successful = !!successful @captures = IceNine.deep_freeze((captures || []).deep_dup) end |
Instance Attribute Details
#captures ⇒ Object (readonly)
Returns the value of attribute captures.
5 6 7 |
# File 'lib/wonk/policy_validators/aws_ec2/rule_result.rb', line 5 def captures @captures end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/wonk/policy_validators/aws_ec2/rule_result.rb', line 13 def success? @successful end |