Adapter::Async::Model - helper class for defining models
version 0.015
Generates accessors and helpers for code which interacts with Adapter::Async-related classes. Please read the warnings in Adapter::Async before continuing.
All definitions are applied via the "import" method:
package Some::Class; use Adapter::Async::Model { some_thing => 'string', some_array => { collection => 'OrderedList', type => '::Thing', } };
Note that methods are applied via a UNITCHECK block by default.
defer_methods - if true (default), this will delay creation of methods such as new using a UNITCHECK block, pass defer_methods => 0 to disable this and create the methods immediately
new
model_base - the base class to prepend when types are specified with a leading ::
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.
To install Adapter::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Adapter::Async
CPAN shell
perl -MCPAN -e shell install Adapter::Async
For more information on module installation, please visit the detailed CPAN module installation guide.