Exception: SmashTheState::Operation::NotAuthorized
- Inherits:
-
StandardError
- Object
- StandardError
- SmashTheState::Operation::NotAuthorized
- Defined in:
- lib/smash_the_state/operation/error.rb
Instance Attribute Summary collapse
-
#policy_instance ⇒ Object
readonly
Returns the value of attribute policy_instance.
Instance Method Summary collapse
-
#initialize(policy_instance) ⇒ NotAuthorized
constructor
A new instance of NotAuthorized.
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_instance ⇒ Object (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 |