class Role
A Role with an ergonomic rules shorthand. Each rule maps a resource spec to its verbs; the spec is "resource" (core API group) or "group/resource":
Role.new(rules: [ "secrets" => %w[get list], "batch/cronjobs" => %w[get], ])
Definitions
attr_reader :rules_input
The original rules shorthand, so a named copy can be rebuilt from it (rebuild downgrades the class; reconstructing keeps it a Standard::Role).