Class: ReactorSDK::Resources::AuditEvent
- Inherits:
-
BaseResource
- Object
- BaseResource
- ReactorSDK::Resources::AuditEvent
- 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
-
#created_at ⇒ String
ISO8601 timestamp when the event occurred.
-
#entity_display_name ⇒ String
Human-readable name of the affected resource.
-
#inspect ⇒ String
Human-readable representation.
-
#previous_attributes ⇒ Hash?
Snapshot of the resource before the action.
-
#type_of ⇒ String
The type of action that occurred.
-
#updated_attributes ⇒ Hash?
Snapshot of the resource after the action.
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_at ⇒ String
Returns ISO8601 timestamp when the event occurred.
26 |
# File 'lib/reactor_sdk/resources/audit_event.rb', line 26 attribute :created_at |
#entity_display_name ⇒ String
Returns Human-readable name of the affected resource.
23 |
# File 'lib/reactor_sdk/resources/audit_event.rb', line 23 attribute :entity_display_name |
#inspect ⇒ String
Returns 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_attributes ⇒ Hash?
Returns Snapshot of the resource before the action.
29 |
# File 'lib/reactor_sdk/resources/audit_event.rb', line 29 attribute :previous_attributes |
#type_of ⇒ String
Returns The type of action that occurred.
20 |
# File 'lib/reactor_sdk/resources/audit_event.rb', line 20 attribute :type_of |
#updated_attributes ⇒ Hash?
Returns Snapshot of the resource after the action.
32 |
# File 'lib/reactor_sdk/resources/audit_event.rb', line 32 attribute :updated_attributes |