Class: Sandthorn::Event

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/sandthorn/event.rb

Defined Under Namespace

Classes: AttributeDelta

Constant Summary collapse

ATTRS =
%i(
  aggregate_id
  aggregate_type
  aggregate_version
  timestamp
  event_name
  event_args
  method_args
  trace
)

Instance Method Summary collapse

Instance Method Details

#attribute_deltasObject



26
27
28
# File 'lib/sandthorn/event.rb', line 26

def attribute_deltas
  @attribute_deltas ||= build_deltas
end

#new_valuesObject



22
23
24
# File 'lib/sandthorn/event.rb', line 22

def new_values
  @changed_attributes ||= build_new_values
end