lib/WWW/Hetzner/Cloud/ServerType.pm

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