Exception: AccessGranted::AccessDenied

Inherits:
Error
  • Object
show all
Defined in:
lib/access-granted/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



7
8
9
# File 'lib/access-granted/exceptions.rb', line 7

def action
  @action
end

#subjectObject (readonly)

Returns the value of attribute subject.



7
8
9
# File 'lib/access-granted/exceptions.rb', line 7

def subject
  @subject
end