Class: Cerbos::Output::PlanResources::Metadata
- Inherits:
-
Object
- Object
- Cerbos::Output::PlanResources::Metadata
- Defined in:
- lib/cerbos/output/plan_resources.rb
Overview
Additional information about the query plan.
Instance Attribute Summary collapse
-
#condition_string ⇒ String
readonly
The query condition abstract syntax tree rendered as a human-readable string, to help with debugging.
-
#matched_scope ⇒ String
readonly
The policy scope that was used to plan the query.
Instance Attribute Details
#condition_string ⇒ String (readonly)
The query condition abstract syntax tree rendered as a human-readable string, to help with debugging.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/cerbos/output/plan_resources.rb', line 126 PlanResources::Metadata = Output.new_class(:condition_string, :matched_scope) do # @!attribute [r] condition_string # The query condition abstract syntax tree rendered as a human-readable string, to help with debugging. # # @return [String] # @!attribute [r] matched_scope # The policy scope that was used to plan the query. # # @return [String] # # @see https://docs.cerbos.dev/cerbos/latest/policies/scoped_policies.html Scoped policies def self.from_protobuf() return nil if .nil? new( condition_string: .filter_debug, matched_scope: .matched_scope ) end end |
#matched_scope ⇒ String (readonly)
The policy scope that was used to plan the query.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/cerbos/output/plan_resources.rb', line 126 PlanResources::Metadata = Output.new_class(:condition_string, :matched_scope) do # @!attribute [r] condition_string # The query condition abstract syntax tree rendered as a human-readable string, to help with debugging. # # @return [String] # @!attribute [r] matched_scope # The policy scope that was used to plan the query. # # @return [String] # # @see https://docs.cerbos.dev/cerbos/latest/policies/scoped_policies.html Scoped policies def self.from_protobuf() return nil if .nil? new( condition_string: .filter_debug, matched_scope: .matched_scope ) end end |