Meerkat::Types - Moose types for Meerkat
version 0.012
use Meerkat::Types qw/:all/; has birthday => ( is => 'ro', isa => MeerkatDateTime, coerce => 1, );
This module defines Moose types and coercions.
This type is a Meerkat::DateTime. It defines coercions from Num (an epoch value), DateTime and DateTime::Tiny.
Num
It also sets up a MooseX::Storage type handler that 'collapses' to a DateTime object for storage by the MongoDB client, but 'expands' from an epoch value provided by the MongoDB client back into a Meerkat::DateTime object.
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Meerkat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Meerkat
CPAN shell
perl -MCPAN -e shell install Meerkat
For more information on module installation, please visit the detailed CPAN module installation guide.