EntityModel/Definition/Perl.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
load
1.0
CRAP 1.0
« EntityModel/Async.pm ↑ Summary EntityModel/Entity/Constraint.pm »
1 package EntityModel::Definition::Perl;
2 {
3 5 $EntityModel::Definition::Perl::VERSION = '0.102';
4 }
5 5 ▶use EntityModel::Class {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 _isa => [qw{EntityModel::Definition}],
7 5 };
8  
9 =head1 NAME
10  
11 EntityModel::Definition::Perl - definition support for L<EntityModel>
12  
13 =head1 VERSION
14  
15 version 0.102
16  
17 =head1 SYNOPSIS
18  
19 See L<EntityModel>.
20  
21 =head1 DESCRIPTION
22  
23 See L<EntityModel>.
24  
25 =head1 METHODS
26  
27 =cut
28  
29 =head2 load
30  
31 Perl is simple - give it a hashref, let it sort things out for itself.
32  
33 =cut
34  
35 4 ▶sub load {
Subroutine load: called CC=1 SCAR=0.0
Pod documented
36 4 my $self = shift;
37 4 my %args = @_;
38 4 my $src = delete $args{source};
39 return $self->apply_model_from_structure(
40 model => $args{model},
41 4 structure => $src
42 );
43 }
44  
45 5 1;
46  
47 __END__
« EntityModel/Async.pm ↑ Summary EntityModel/Entity/Constraint.pm »