EventStore::Tiny::DataEvent
EventStore::Tiny::DataEvent extends EventStore::Tiny::Event and implements the following additional attributes and methods.
my $ev = EventStore::Tiny::DataEvent->new(data => {id => 42});
Sets concrete data for this event which will be used during application.
my $concrete = EventStore::Tiny::DataEvent->new_from_template( $event, {id => 17} );
Creates a new data event based on an event (usually representing an event type which was registered before using "register_event" in EventStore::Tiny).
$event->apply_to(\%state, $logger);
Applies this event's transformation to the given state (by side-effect) and its "data". If a $logger as a subref is given, it is used to log this application.
$logger
EventStore::Tiny
Copyright (c) 2018 Mirko Westermeier (mail: mirko@westermeier.de)
Released under the MIT License (see LICENSE.txt for details).
To install EventStore::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EventStore::Tiny
CPAN shell
perl -MCPAN -e shell install EventStore::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.