Class: ForestAdminAgent::AuditTrail::AuditRecord

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#action_nameObject

Returns the value of attribute action_name

Returns:

  • (Object)

    the current value of action_name



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def action_name
  @action_name
end

#collectionObject

Returns the value of attribute collection

Returns:

  • (Object)

    the current value of collection



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def collection
  @collection
end

#correlation_keyObject

Returns the value of attribute correlation_key

Returns:

  • (Object)

    the current value of correlation_key



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def correlation_key
  @correlation_key
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def id
  @id
end

#new_valuesObject

Returns the value of attribute new_values

Returns:

  • (Object)

    the current value of new_values



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def new_values
  @new_values
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def operation
  @operation
end

#previous_record_idObject

Returns the value of attribute previous_record_id

Returns:

  • (Object)

    the current value of 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_valuesObject

Returns the value of attribute previous_values

Returns:

  • (Object)

    the current value of previous_values



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def previous_values
  @previous_values
end

#record_idObject

Returns the value of attribute record_id

Returns:

  • (Object)

    the current value of record_id



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def record_id
  @record_id
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def status
  @status
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



9
10
11
# File 'lib/forest_admin_agent/audit_trail/audit_record.rb', line 9

def timestamp
  @timestamp
end

#user_emailObject

Returns the value of attribute user_email

Returns:

  • (Object)

    the current value of 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_nameObject

Returns the value of attribute user_first_name

Returns:

  • (Object)

    the current value of 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_idObject

Returns the value of attribute user_id

Returns:

  • (Object)

    the current value of 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_nameObject

Returns the value of attribute user_last_name

Returns:

  • (Object)

    the current value of 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