NAME
MooseX::Unique::Meta::Trait::Class - MooseX::Unique Class MetaRole
VERSION
This document describes v0.005 of MooseX::Unique::Meta::Trait::Class - released June 22, 2011 as part of MooseX-Unique.
SYNOPSIS
See MooseX::Unique;
DESCRIPTION
Provides the attribute match_attribute to your metaclass.
METHODS
match_attributes
Returns a list of match attributes
add_match_attribute
Add a match attribute
match_requires
The minimum number of attributes that must match to consider two objects to be identical. The default is 1.
add_match_requires
Sets the minimum number of matches required to make a match. Setting this to 0 means that a match requires that all attributes set to unique are matched. If you run this more than once, for example in a role, it will add to the existing unless the existing is 0. If you set it to 0, it will reset it to 0 regardless of current value.
SEE ALSO
Please see those modules/websites for more information related to this module.
AUTHOR
Edward Allen <ealleniii@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Edward J. Allen III.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.