The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::ISC::DHCPd::OMAPI::Meta::Class - Sugar for omapi classes

SYNOPSIS

 use Net::ISC::DHCPd::OMAPI::Meta::Class; # not use Moose

 omapi_attr foo => (
    isa => State,
 );

FUNCTIONS

omapi_attr

 omapi_attr $name => %attr;

%attr is by default:

 (
   is => "rw",
   predicate => "has_$name",
   traits => [qw/Net::ISC::DHCPd::OMAPI::Meta::Attribute/],
 )

It will also set "coerce => 1", when "isa" is one of "MOOSE TYPES".

AUTHOR

See Net::ISC::DHCPd