Class: ReactorSDK::Resources::AuditEvent

Inherits:
BaseResource show all
Defined in:
lib/reactor_sdk/resources/audit_event.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#attributes, #id, #meta, #relationships, #type

Instance Method Summary collapse

Methods inherited from BaseResource

#==, #[], attribute, #initialize, #relationship_data, #relationship_id, #relationship_ids, #to_h

Constructor Details

This class inherits a constructor from ReactorSDK::Resources::BaseResource

Instance Method Details

#created_atString

Returns ISO8601 timestamp when the event occurred.

Returns:

  • (String)

    ISO8601 timestamp when the event occurred



26
# File 'lib/reactor_sdk/resources/audit_event.rb', line 26

attribute :created_at

#entity_display_nameString

Returns Human-readable name of the affected resource.

Returns:

  • (String)

    Human-readable name of the affected resource



23
# File 'lib/reactor_sdk/resources/audit_event.rb', line 23

attribute :entity_display_name

#inspectString

Returns Human-readable representation.

Returns:

  • (String)

    Human-readable representation



37
38
39
40
41
42
# File 'lib/reactor_sdk/resources/audit_event.rb', line 37

def inspect
  '#<ReactorSDK::Resources::AuditEvent ' \
    "id=#{id.inspect} " \
    "type=#{type_of.inspect} " \
    "entity=#{entity_display_name.inspect}>"
end

#previous_attributesHash?

Returns Snapshot of the resource before the action.

Returns:

  • (Hash, nil)

    Snapshot of the resource before the action



29
# File 'lib/reactor_sdk/resources/audit_event.rb', line 29

attribute :previous_attributes

#type_ofString

Returns The type of action that occurred.

Returns:

  • (String)

    The type of action that occurred



20
# File 'lib/reactor_sdk/resources/audit_event.rb', line 20

attribute :type_of

#updated_attributesHash?

Returns Snapshot of the resource after the action.

Returns:

  • (Hash, nil)

    Snapshot of the resource after the action



32
# File 'lib/reactor_sdk/resources/audit_event.rb', line 32

attribute :updated_attributes