EventStore::Tiny::TransformationStore
EventStore::Tiny::TransformationStore implements the following methods.
my @event_names = $ts->names;
Returns a sorted list of all stored event names.
my $transformation = $ts->get('Foo');
Returns the transformation subroutine (as a coderef) for the given name. If no corresponding transformation subroutine could be found, it returns undef.
undef
$ts->set(Foo => sub { my ($state, $data) = @_; # manipulate $state });
Registers a transformation subroutine under a given name in the store. It should change the given state argument (as a hashref) based on the given data (as a hashref) by side-effect.
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.