Class: EntityProjection::Controls::Projection::ApplyMethod::Message::Example

Inherits:
Object
  • Object
show all
Includes:
EntityProjection
Defined in:
lib/entity_projection/controls/projection.rb

Instance Method Summary collapse

Methods included from EntityProjection

#apply_event, #apply_event_data, #call, included

Instance Method Details

#apply(message) ⇒ Object



30
31
32
# File 'lib/entity_projection/controls/projection.rb', line 30

def apply(message)
  entity.some_attribute = message.some_attribute
end