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.



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

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.



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

def action
  @action
end

#payloadObject (readonly)

Returns the value of attribute payload.



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

def payload
  @payload
end

#subjectObject (readonly)

Returns the value of attribute subject.



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

def subject
  @subject
end