lib/WWW/Hetzner/Cloud/Image.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 89.6% 26 / 29 CC 1 SCAR 2.2
CC
1
Cov
92%
data
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/WWW/Hetzner/Cloud/ServerType.pm ↑ Summary lib/WWW/Hetzner/Cloud/Datacenter.pm »
1 package WWW::Hetzner::Cloud::Image;
2 # ABSTRACT: Hetzner Cloud Image 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 type => ( is => 'ro' );
27  
28  
29 25 has status => ( is => 'ro' );
30  
31  
32 25 has os_flavor => ( is => 'ro' );
33  
34  
35 25 has os_version => ( is => 'ro' );
36  
37  
38 25 has architecture => ( is => 'ro' );
39  
40  
41 25 has disk_size => ( is => 'ro' );
42  
43  
44 25 has created => ( is => 'ro' );
45  
46  
47 25 has deprecated => ( is => 'ro' );
48  
49  
50 10 ▶has labels => ( is => 'ro', default => sub { {} } );
Subroutine __ANON__: called CC=1 SCAR=0.0
51  
52  
53 sub data {
54 0 ▶ my ($self) = @_;
Subroutine data: not called CC=1 SCAR=6.9
Pod documented
55 return {
56 0 id => $self->id,
57 name => $self->name,
58 description => $self->description,
59 type => $self->type,
60 status => $self->status,
61 os_flavor => $self->os_flavor,
62 os_version => $self->os_version,
63 architecture => $self->architecture,
64 disk_size => $self->disk_size,
65 created => $self->created,
66 deprecated => $self->deprecated,
67 labels => $self->labels,
68 };
69 }
70  
71  
72  
73 25 1.
74  
75 __END__
« lib/WWW/Hetzner/Cloud/ServerType.pm ↑ Summary lib/WWW/Hetzner/Cloud/Datacenter.pm »