Class: Yes::Core::Aggregate::SharedReadModelRebuilder::EventWithAggregate

Inherits:
Struct
  • Object
show all
Defined in:
lib/yes/core/aggregate/shared_read_model_rebuilder.rb

Overview

Value object to hold event data with aggregate information

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aggregateObject

Returns the value of attribute aggregate

Returns:

  • (Object)

    the current value of aggregate



13
14
15
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 13

def aggregate
  @aggregate
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



13
14
15
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 13

def event
  @event
end

Instance Method Details

#created_atTime

Returns The creation timestamp of the event.

Returns:

  • (Time)

    The creation timestamp of the event

Since:

  • 0.1.0



15
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 15

delegate :created_at, to: :event