Class: EntityProjection::Controls::Projection::ApplyMethod::Example
- Inherits:
-
Object
- Object
- EntityProjection::Controls::Projection::ApplyMethod::Example
- 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(event_data) ⇒ Object
19 20 21 |
# File 'lib/entity_projection/controls/projection.rb', line 19 def apply(event_data) entity.some_attribute = event_data.data[:attribute] end |