NAME

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

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 => $_ ).

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Alex J. G. Burzyński

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.