Exception: AccessGranted::AccessDenied
- Defined in:
- lib/access-granted/exceptions.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(action = nil, subject = nil) ⇒ AccessDenied
constructor
A new instance of AccessDenied.
Constructor Details
#initialize(action = nil, subject = nil) ⇒ AccessDenied
Returns a new instance of AccessDenied.
8 9 10 11 |
# File 'lib/access-granted/exceptions.rb', line 8 def initialize(action = nil, subject = nil) @action = action @subject = subject end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
7 8 9 |
# File 'lib/access-granted/exceptions.rb', line 7 def action @action end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
7 8 9 |
# File 'lib/access-granted/exceptions.rb', line 7 def subject @subject end |