The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Brick::Result - the result of applying a profile

SYNOPSIS

        use Brick;

        my $result = $brick->apply( $Profile, $Input );

        $result->explain;

DESCRIPTION

This class provides methods to turn the data structure returned by apply() into a useable form for particular situations.

Class methods

result_item_class

Loads and returns the class name to use for the elements of the Results data structure.

Instance methods

explain

Create a string the shows the result in an outline form.

flatten

Collapse the result structure to an array of flat hashes.

flatten_by_field

Similar to flatten, but keyed by the field that failed the constraint.

flatten_by

Similar to flatten, but keyed by the hash key named in the argument list.

dump

What should this do?

TO DO

TBA

SEE ALSO

Brick::Tutorial, Brick::UserGuide

SOURCE AVAILABILITY

This source is in Github:

        https://github.com/briandfoy/brick

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT

Copyright (c) 2007-2014, brian d foy, All Rights Reserved.

You may redistribute this under the same terms as Perl itself.