Class: Shamu::Auditing::AuditRecord

Inherits:
Entities::Entity show all
Defined in:
lib/shamu/auditing/audit_record.rb

Attributes collapse

Method Summary

Methods inherited from Entities::Entity

#empty?, model, model_name, null_entity, #persisted?, #present?, #to_entity

Methods included from ToModelIdExtension::Models

#to_model_id

Methods included from Shamu::Attributes::Equality

#==, #hash

Methods included from Shamu::Attributes

#[], #assign_attributes, association, associations, attribute, #attribute?, attributes, #initialize, #set?, #to_attributes

Instance Attribute Details

#changesHash

Returns the changes requested.

Returns:

  • (Hash)

    the changes requested.



25
# File 'lib/shamu/auditing/audit_record.rb', line 25

attribute :changes, on: :record

#entity_pathString

Returns an EntityPath from the root to the target entity.

Returns:

  • (String)

    an EntityPath from the root to the target entity.



17
# File 'lib/shamu/auditing/audit_record.rb', line 17

attribute :entity_path, on: :record

#idInteger

Returns:

  • (Integer)


13
# File 'lib/shamu/auditing/audit_record.rb', line 13

attribute :id, on: :record

#timestampTime

Returns when the transaction occured.

Returns:

  • (Time)

    when the transaction occured.



21
# File 'lib/shamu/auditing/audit_record.rb', line 21

attribute :timestamp, on: :record