Exception: ZeroAuthorization::Exceptions::NotAuthorized
- Inherits:
-
StandardError
- Object
- StandardError
- ZeroAuthorization::Exceptions::NotAuthorized
- Defined in:
- lib/zero_authorization/exceptions.rb
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role) ⇒ NotAuthorized
constructor
A new instance of NotAuthorized.
Constructor Details
#initialize(role) ⇒ NotAuthorized
Returns a new instance of NotAuthorized.
15 16 17 |
# File 'lib/zero_authorization/exceptions.rb', line 15 def initialize(role) @role = role end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
13 14 15 |
# File 'lib/zero_authorization/exceptions.rb', line 13 def role @role end |