NAME

Yukki::Types - standard types for use in Yukki

VERSION

version 0.110880

SYNOPSIS

use Yukki::Types qw( LoginName AccessLevel );

has login_name => ( isa => LoginName );
has access_level => ( isa => AccessLevel );

DESCRIPTION

A standard type library for Yukki.

TYPES

LoginName

This is a valid login name. Login names may only contain letters and numbers, as of this writing.

AccessLevel

This is a valid access level. This includes any of the following values:

read
write
none

THis is an array of hashes formatted like:

{
    label => 'Label',
    href  => '/link/to/somewhere',
    sort  => 40,
}

THis is an array of hashes formatted like:

{
    label => 'Label',
    href  => '/link/to/somewhere',
}

RepositoryMap

This is a hash of Yukki::Settings::Repository objects.

COERCIONS

In addition to the types above, these coercions are provided for other types.

Email::Address

Coerces a Str into an Email::Address.

Yukki::Settings

Coerces a HashRef into this object by passing the value to the constructor.

Yukki::Web::Settings

Coerces a HashRef into a Yukki::Web::Settings.

Yukki::Settings::Anonymous

Coerces a HashRef into this object by passing the value to the constructor.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.