Gideon::Meta::Attribute::Trait::Inflate - Inflated attribute
version 0.0.3
# Store a document as JSON in the database package Document; use Gideon driver => 'DBI'; use JSON; ... has content => ( is => 'rw', traits => [ 'Gideon::DBI::Column', 'Gideon::Inflate' ], inflator => sub { decode_json $_[0] }, deflator => sub { encode_json $_[0] } );
It allows you to configurate an inflate and deflate methods for an attribute, Gideon will use the inflator method when retrieving the information from a data store, and the deflator before storing the information in the data store
inflator
deflator
Gideon::Meta::Attribute::Trait::Inflated - Inflated attribute
Gideon::Inflate
Mariano Wahlmann, Gines Razanov
This software is copyright (c) 2013 by Mariano Wahlmann, Gines Razanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Gideon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gideon
CPAN shell
perl -MCPAN -e shell install Gideon
For more information on module installation, please visit the detailed CPAN module installation guide.