NAME

Net::ISC::DHCPd::OMAPI::Sugar - Moose sugar for omapi classes

SYNOPSIS

use Net::ISC::DHCPd::OMAPI::Sugar; # 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 from Net::ISC::DHCPd::Types.

COPYRIGHT & LICENSE

AUTHOR

See Net::ISC::DHCPd.