NAME

WWW::Sitemapper::Types - Types used by WWW::Sitemapper.

VERSION

version 1.103280

SYNOPSIS

use WWW::Sitemapper::Types qw( tURI tDateTime tDateTimeDuration );

TYPES

tURI

has 'uri' => (
    is => 'rw',
    isa => tURI,
    coerce => 1,
);

URI object.

Coerces from Str via "new" in URI.

tDateTime

has 'datetime' => (
    is => 'rw',
    isa => tDateTime,
    coerce => 1,
);

DateTime object.

Coerces from Int via DateTime->from_epoch( epoch => $_ ).

tDateTimeDuration

has 'datetimeduration' => (
    is => 'rw',
    isa => tDateTimeDuration,
    coerce => 1,
);

DateTime::Duration object.

Coerces from Num via DateTime::Duration->new( minutes => $_ ).

SEE ALSO

AUTHOR

Alex J. G. Burzyński <ajgb@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Alex J. G. Burzyński <ajgb@cpan.org>.

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