Exception: SmashTheState::Operation::NotAuthorized

Inherits:
StandardError
  • Object
show all
Defined in:
lib/smash_the_state/operation/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_instance) ⇒ NotAuthorized

Returns a new instance of NotAuthorized.



14
15
16
# File 'lib/smash_the_state/operation/error.rb', line 14

def initialize(policy_instance)
  @policy_instance = policy_instance
end

Instance Attribute Details

#policy_instanceObject (readonly)

Returns the value of attribute policy_instance.



12
13
14
# File 'lib/smash_the_state/operation/error.rb', line 12

def policy_instance
  @policy_instance
end