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.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(message, action, subject, payload = nil) ⇒ AccessDenied
constructor
A new instance of AccessDenied.
Constructor Details
#initialize(message, action, subject, payload = nil) ⇒ AccessDenied
Returns a new instance of AccessDenied.
19 20 21 22 23 24 |
# File 'lib/allowy.rb', line 19 def initialize(, action, subject, payload=nil) @message = @action = action @subject = subject @payload = payload end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
17 18 19 |
# File 'lib/allowy.rb', line 17 def action @action end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
17 18 19 |
# File 'lib/allowy.rb', line 17 def payload @payload end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
17 18 19 |
# File 'lib/allowy.rb', line 17 def subject @subject end |