Class: GustoEmbedded::Shared::Event
- Inherits:
-
Crystalline::FieldAugmented
- Object
- Crystalline::FieldAugmented
- GustoEmbedded::Shared::Event
- Extended by:
- T::Sig
- Defined in:
- lib/gusto_embedded/models/shared/event.rb
Overview
Representation of an Event
Instance Method Summary collapse
-
#initialize(uuid: nil, entity_type: nil, entity_uuid: nil, event_type: nil, resource_type: nil, resource_uuid: nil, timestamp: nil) ⇒ Event
constructor
A new instance of Event.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, entity_type: nil, entity_uuid: nil, event_type: nil, resource_type: nil, resource_uuid: nil, timestamp: nil) ⇒ Event
Returns a new instance of Event.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/event.rb', line 31 def initialize(uuid: nil, entity_type: nil, entity_uuid: nil, event_type: nil, resource_type: nil, resource_uuid: nil, timestamp: nil) @uuid = uuid @entity_type = entity_type @entity_uuid = entity_uuid @event_type = event_type @resource_type = resource_type @resource_uuid = resource_uuid @timestamp = end |