NAME

MooseX::Types::UUID - UUID type for Moose classes

SYNOPSIS

package Class;
use Moose;
use MooseX::Types::UUID qw(UUID);

has 'uuid' => ( is => 'ro', isa => UUID );

package main;
Class->new( uuid => '77C71F92-0EC7-11DD-B986-DF138EE79F6F' );

DESCRIPTION

This module lets you constrain attributes to only contain UUIDs (in their usual human-readable form). No coercion is attempted.

EXPORT

None by default, you'll usually want to request UUID explicitly.

AUTHOR

Jonathan Rockway <jrockway@cpan.org>

Infinity Interactive (http://www.iinteractive.com/)

COPYRIGHT

This program is Free software, you may redistribute it under the same terms as Perl itself.