Class: Rabarber::Audit::Events::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rabarber/audit/events/base.rb

Direct Known Subclasses

RolesAssigned, RolesRevoked, UnauthorizedAttempt

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#roleableObject (readonly)

Returns the value of attribute roleable.



9
10
11
# File 'lib/rabarber/audit/events/base.rb', line 9

def roleable
  @roleable
end

#specificsObject (readonly)

Returns the value of attribute specifics.



9
10
11
# File 'lib/rabarber/audit/events/base.rb', line 9

def specifics
  @specifics
end

Class Method Details

.trigger(roleable, specifics) ⇒ Object



11
12
13
# File 'lib/rabarber/audit/events/base.rb', line 11

def self.trigger(roleable, specifics)
  new(roleable, specifics).send(:log)
end