1234567891011121314151617181920212223 package Mongol::Models::Address;use Moose;extends 'Mongol::Model';has 'street' => ( is => 'ro', isa => 'Str', required => 1,);has 'number' => ( is => 'ro', isa => 'Int', required => 1,);__PACKAGE__->meta()->make_immutable();1;__END__
package
Mongol::Models::Address;
use
Moose;
extends
'Mongol::Model'
;
has
'street'
=> (
is
=>
'ro'
,
isa
'Str'
required
=> 1,
);
'number'
'Int'
__PACKAGE__->meta()->make_immutable();
1;
__END__