Class: ForestAdminAgent::AuditTrail::AuditRecord
- Inherits:
-
Struct
- Object
- Struct
- ForestAdminAgent::AuditTrail::AuditRecord
- Defined in:
- lib/forest_admin_agent/audit_trail/audit_record.rb
Overview
One audited change. Mirrors the columns of forest.audit_logs.
The actor's name and email are denormalised from the caller at write time: the row says who acted then,
not whoever holds that user id today. action_name is set on smart-action rows only, and status
follows the write protocol — inserted as Recording::PENDING before the write and confirmed
Recording::DONE after, so a row left pending means the write may or may not have landed.
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#correlation_key ⇒ Object
Returns the value of attribute correlation_key.
-
#id ⇒ Object
Returns the value of attribute id.
-
#new_values ⇒ Object
Returns the value of attribute new_values.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#previous_record_id ⇒ Object
Returns the value of attribute previous_record_id.
-
#previous_values ⇒ Object
Returns the value of attribute previous_values.
-
#record_id ⇒ Object
Returns the value of attribute record_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#user_email ⇒ Object
Returns the value of attribute user_email.
-
#user_first_name ⇒ Object
Returns the value of attribute user_first_name.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_last_name ⇒ Object
Returns the value of attribute user_last_name.
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def action_name @action_name end |
#collection ⇒ Object
Returns the value of attribute collection
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def collection @collection end |
#correlation_key ⇒ Object
Returns the value of attribute correlation_key
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def correlation_key @correlation_key end |
#id ⇒ Object
Returns the value of attribute id
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def id @id end |
#new_values ⇒ Object
Returns the value of attribute new_values
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def new_values @new_values end |
#operation ⇒ Object
Returns the value of attribute operation
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def operation @operation end |
#previous_record_id ⇒ Object
Returns the value of attribute previous_record_id
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def previous_record_id @previous_record_id end |
#previous_values ⇒ Object
Returns the value of attribute previous_values
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def previous_values @previous_values end |
#record_id ⇒ Object
Returns the value of attribute record_id
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def record_id @record_id end |
#status ⇒ Object
Returns the value of attribute status
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def status @status end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def @timestamp end |
#user_email ⇒ Object
Returns the value of attribute user_email
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def user_email @user_email end |
#user_first_name ⇒ Object
Returns the value of attribute user_first_name
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def user_first_name @user_first_name end |
#user_id ⇒ Object
Returns the value of attribute user_id
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def user_id @user_id end |
#user_last_name ⇒ Object
Returns the value of attribute user_last_name
9 10 11 |
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9 def user_last_name @user_last_name end |