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, payload = nil) ⇒ AccessDenied

Returns a new instance of AccessDenied.



18
19
20
21
22
23
# File 'lib/allowy.rb', line 18

def initialize(message, action, subject, payload=nil)
  @message = message
  @action = action
  @subject = subject
  @payload = payload
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



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

def action
  @action
end

#payloadObject (readonly)

Returns the value of attribute payload.



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

def payload
  @payload
end

#subjectObject (readonly)

Returns the value of attribute subject.



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

def subject
  @subject
end