Oterica/Role/RecordMaker.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Oterica/Role/HasHub.pm ↑ Summary
1 package DNS::Oterica::Role::RecordMaker;
2 # ABSTRACT: a delegation class for the DNSO recordmaker.
3 1 $DNS::Oterica::Role::RecordMaker::VERSION = '0.313';
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use DNS::Oterica::RecordMaker::TinyDNS;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #pod =head1 DESCRIPTION
9 #pod
10 #pod C<DNS::Oterica::Role::RecordMaker> delegates to an underlying record maker. It
11 #pod exposes this record maker with its C<rec> method.
12 #pod
13 #pod =attr rec
14 #pod
15 #pod The record maker, e.g. L<DNS::Oterica::RecordMaker::TinyDNS>.
16 #pod
17 #pod =cut
18  
19 has rec => (
20 is => 'ro',
21 isa => 'Defined', # String or object (duck type this?)
22 1 ▶ default => sub { DNS::Oterica::RecordMaker::TinyDNS->new },
Subroutine __ANON__: called CC=1 SCAR=0.0
23 1 );
24  
25 1 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 1
27  
28 __END__
29  
30 =pod
31  
32 =encoding UTF-8
33  
34 =head1 NAME
35  
36 DNS::Oterica::Role::RecordMaker - a delegation class for the DNSO recordmaker.
37  
38 =head1 VERSION
39  
40 version 0.313
41  
42 =head1 DESCRIPTION
43  
44 C<DNS::Oterica::Role::RecordMaker> delegates to an underlying record maker. It
45 exposes this record maker with its C<rec> method.
46  
47 =head1 PERL VERSION
48  
49 This library should run on perls released even a long time ago. It should work
50 on any version of perl released in the last five years.
51  
52 Although it may work on older versions of perl, no guarantee is made that the
53 minimum required version will not be increased. The version may be increased
54 for any reason, and there is no promise that patches will be accepted to lower
55 the minimum required perl.
56  
57 =head1 ATTRIBUTES
58  
59 =head2 rec
60  
61 The record maker, e.g. L<DNS::Oterica::RecordMaker::TinyDNS>.
62  
63 =head1 AUTHOR
64  
65 Ricardo SIGNES <rjbs@semiotic.systems>
66  
67 =head1 COPYRIGHT AND LICENSE
68  
69 This software is copyright (c) 2021 by Ricardo SIGNES.
70  
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73  
74 =cut
« Oterica/Role/HasHub.pm ↑ Summary