NAME

Adapter::Async::Model - helper class for defining models

VERSION

version 0.018

DESCRIPTION

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.

import

  • 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

  • model_base - the base class to prepend when types are specified with a leading ::

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.