lib/critic/authorization.rb in critic-0.2.0 vs lib/critic/authorization.rb in critic-0.2.1
- old
+ new
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+# Represents an authorization result for a policy and action
class Critic::Authorization
attr_reader :policy, :action
attr_accessor :messages, :granted, :result, :metadata
def initialize(policy, action)