Kubernetes/Resource/Role/Spec.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Kubernetes/Resource/Event.pm ↑ Summary Kubernetes/Resource/Service.pm »
1 package Net::Kubernetes::Resource::Role::Spec;
2 # ABSTRACT: Resource role for types that have a spec
3 4 $Net::Kubernetes::Resource::Role::Spec::VERSION = '0.19';
4 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 has spec => (
7 is => 'rw',
8 isa => 'HashRef',
9 required => 1
10 );
11  
12 around "as_hashref" => sub {
13 4 ▶ my ($orig, $self) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
14 4 my $ref = $self->$orig;
15 4 $ref->{spec} = $self->spec;
16 4 return $ref;
17 4 };
18  
19 4 return 42;
20  
21 __END__
22  
23 =pod
24  
25 =encoding UTF-8
26  
27 =head1 NAME
28  
29 Net::Kubernetes::Resource::Role::Spec - Resource role for types that have a spec
30  
31 =head1 VERSION
32  
33 version 0.19
34  
35 =head1 AUTHOR
36  
37 Dave Mueller <dave@perljedi.com>
38  
39 =head1 COPYRIGHT AND LICENSE
40  
41 This software is Copyright (c) 2015 by Dave Mueller.
42  
43 This is free software, licensed under:
44  
45 The MIT (X11) License
46  
47 =head1 SEE ALSO
48  
49 Please see those modules/websites for more information related to this module.
50  
51 =over 4
52  
53 =item *
54  
55 L<Net::Kubernetes|Net::Kubernetes>
56  
57 =back
58  
59 =cut
« Kubernetes/Resource/Event.pm ↑ Summary Kubernetes/Resource/Service.pm »