The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 part of a SourceForge project which always has the latest sources in SVN, as well as all of the previous releases.

        svn co https://brian-d-foy.svn.sourceforge.net/svnroot/brian-d-foy brian-d-foy

If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT

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

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