Exception: Allowy::AccessDenied
- Inherits:
-
StandardError
- Object
- StandardError
- Allowy::AccessDenied
- Defined in:
- lib/allowy.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(message, action, subject) ⇒ AccessDenied
constructor
A new instance of AccessDenied.
Constructor Details
#initialize(message, action, subject) ⇒ AccessDenied
Returns a new instance of AccessDenied.
17 18 19 20 21 |
# File 'lib/allowy.rb', line 17 def initialize(, action, subject) @message = @action = action @subject = subject end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
15 16 17 |
# File 'lib/allowy.rb', line 15 def action @action end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
15 16 17 |
# File 'lib/allowy.rb', line 15 def subject @subject end |