Class: Shamu::Auditing::AuditRecord
- Inherits:
-
Entities::Entity
- Object
- Entities::Entity
- Shamu::Auditing::AuditRecord
- Defined in:
- lib/shamu/auditing/audit_record.rb
Attributes collapse
-
#changes ⇒ Hash
The changes requested.
-
#entity_path ⇒ String
An EntityPath from the root to the target entity.
- #id ⇒ Integer
-
#timestamp ⇒ Time
When the transaction occured.
Method Summary
Methods inherited from Entities::Entity
#empty?, model, model_name, null_entity, #persisted?, #present?, #to_entity
Methods included from ToModelIdExtension::Models
Methods included from Shamu::Attributes::Equality
Methods included from Shamu::Attributes
#[], #assign_attributes, association, associations, attribute, #attribute?, attributes, #initialize, #set?, #to_attributes
Instance Attribute Details
#changes ⇒ Hash
Returns the changes requested.
25 |
# File 'lib/shamu/auditing/audit_record.rb', line 25 attribute :changes, on: :record |
#entity_path ⇒ String
Returns an EntityPath from the root to the target entity.
17 |
# File 'lib/shamu/auditing/audit_record.rb', line 17 attribute :entity_path, on: :record |
#id ⇒ Integer
13 |
# File 'lib/shamu/auditing/audit_record.rb', line 13 attribute :id, on: :record |
#timestamp ⇒ Time
Returns when the transaction occured.
21 |
# File 'lib/shamu/auditing/audit_record.rb', line 21 attribute :timestamp, on: :record |