Class: Synapse::Upcasting::UpcastSerializedDomainEventData

Inherits:
Serialization::SerializedDomainEventData show all
Extended by:
Forwardable
Defined in:
lib/synapse/upcasting/data.rb

Instance Method Summary collapse

Methods inherited from Serialization::SerializedDomainEventData

#id, #metadata, #sequence_number, #timestamp

Constructor Details

#initialize(original, aggregate_id, upcast_payload) ⇒ undefined



10
11
12
13
14
# File 'lib/synapse/upcasting/data.rb', line 10

def initialize(original, aggregate_id, upcast_payload)
  @original = original
  @aggregate_id = aggregate_id
  @upcast_payload = upcast_payload
end

Instance Method Details

#aggregate_idObject



22
23
24
# File 'lib/synapse/upcasting/data.rb', line 22

def aggregate_id
  @aggregate_id
end

#payloadSerializedObject



17
18
19
# File 'lib/synapse/upcasting/data.rb', line 17

def payload
  @upcast_payload
end