Class: Cerbos::Output::CheckResources::Result::Metadata::Effect
- Inherits:
-
Object
- Object
- Cerbos::Output::CheckResources::Result::Metadata::Effect
- Defined in:
- lib/cerbos/output/check_resources.rb
Overview
Additional information about how a policy decision was reached.
Instance Attribute Summary collapse
-
#matched_policy ⇒ String
readonly
The policy that was used to make the decision.
-
#matched_scope ⇒ String
readonly
The policy scope that was used to make the decision.
Instance Attribute Details
#matched_policy ⇒ String (readonly)
The policy that was used to make the decision.
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/cerbos/output/check_resources.rb', line 222 CheckResources::Result::Metadata::Effect = Output.new_class(:matched_policy, :matched_scope) do # @!attribute [r] matched_policy # The policy that was used to make the decision. # # @return [String] # @!attribute [r] matched_scope # The policy scope that was used to make the decision. # # @return [String] # # @see https://docs.cerbos.dev/cerbos/latest/policies/scoped_policies.html Scoped policies def self.from_protobuf() new( matched_policy: .matched_policy, matched_scope: .matched_scope ) end end |
#matched_scope ⇒ String (readonly)
The policy scope that was used to make the decision.
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/cerbos/output/check_resources.rb', line 222 CheckResources::Result::Metadata::Effect = Output.new_class(:matched_policy, :matched_scope) do # @!attribute [r] matched_policy # The policy that was used to make the decision. # # @return [String] # @!attribute [r] matched_scope # The policy scope that was used to make the decision. # # @return [String] # # @see https://docs.cerbos.dev/cerbos/latest/policies/scoped_policies.html Scoped policies def self.from_protobuf() new( matched_policy: .matched_policy, matched_scope: .matched_scope ) end end |