Exception: Allowy::AccessDenied

Inherits:
StandardError
  • Object
show all
Defined in:
lib/allowy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, action, subject)
  @message = message
  @action = action
  @subject = subject
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



15
16
17
# File 'lib/allowy.rb', line 15

def action
  @action
end

#subjectObject (readonly)

Returns the value of attribute subject.



15
16
17
# File 'lib/allowy.rb', line 15

def subject
  @subject
end