lib/WWW/Hetzner/Cloud/ServerType.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 87.5% 21 / 24 CC 1 SCAR 2.9
CC
1
Cov
90%
data
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/WWW/Hetzner/Cloud/Location.pm ↑ Summary lib/WWW/Hetzner/Cloud/Image.pm »
1 package WWW::Hetzner::Cloud::ServerType;
2 # ABSTRACT: Hetzner Cloud ServerType object
3  
4 25 our $VERSION = '0.100';
5  
6 25 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 25 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 25 has _client => (
11 is => 'ro',
12 required => 1,
13 weak_ref => 1,
14 init_arg => 'client',
15 );
16  
17 25 has id => ( is => 'ro' );
18  
19  
20 25 has name => ( is => 'ro' );
21  
22  
23 25 has description => ( is => 'ro' );
24  
25  
26 25 has cores => ( is => 'ro' );
27  
28  
29 25 has memory => ( is => 'ro' );
30  
31  
32 25 has disk => ( is => 'ro' );
33  
34  
35 25 has cpu_type => ( is => 'ro' );
36  
37  
38 25 has architecture => ( is => 'ro' );
39  
40  
41 25 has deprecated => ( is => 'ro' );
42  
43  
44 sub data {
45 0 ▶ my ($self) = @_;
Subroutine data: not called CC=1 SCAR=6.9
Pod documented
46 return {
47 0 id => $self->id,
48 name => $self->name,
49 description => $self->description,
50 cores => $self->cores,
51 memory => $self->memory,
52 disk => $self->disk,
53 cpu_type => $self->cpu_type,
54 architecture => $self->architecture,
55 deprecated => $self->deprecated,
56 };
57 }
58  
59  
60  
61 25 1.
62  
63 __END__
« lib/WWW/Hetzner/Cloud/Location.pm ↑ Summary lib/WWW/Hetzner/Cloud/Image.pm »