lib/WWW/Hetzner/Cloud/LoadBalancerType.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 92.5% 25 / 27 CC 1 SCAR 0.3
CC
1
Cov
95%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WWW/Hetzner/Cloud.pm ↑ Summary lib/WWW/Hetzner/Cloud/Datacenter.pm »
1 package WWW::Hetzner::Cloud::LoadBalancerType;
2 # ABSTRACT: Hetzner Cloud LoadBalancerType object
3  
4 60 our $VERSION = '0.102';
5  
6 60 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 60 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 60 has _client => (
11 is => 'ro',
12 required => 1,
13 weak_ref => 1,
14 init_arg => 'client',
15 );
16  
17 60 has id => ( is => 'ro' );
18  
19  
20 60 has name => ( is => 'ro' );
21  
22  
23 60 has description => ( is => 'ro' );
24  
25  
26 60 has max_connections => ( is => 'ro' );
27  
28  
29 60 has max_services => ( is => 'ro' );
30  
31  
32 60 has max_targets => ( is => 'ro' );
33  
34  
35 60 has max_assigned_certificates => ( is => 'ro' );
36  
37  
38 0 ▶has prices => ( is => 'ro', default => sub { [] } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
39  
40  
41 60 has deprecated => ( is => 'ro' );
42  
43  
44 60 has deprecation => ( is => 'ro' );
45  
46  
47 1 ▶sub data {
Subroutine data: called CC=1 SCAR=0.0
Pod documented
48 1 my ($self) = @_;
49 return {
50 1 id => $self->id,
51 name => $self->name,
52 description => $self->description,
53 max_connections => $self->max_connections,
54 max_services => $self->max_services,
55 max_targets => $self->max_targets,
56 max_assigned_certificates => $self->max_assigned_certificates,
57 prices => $self->prices,
58 deprecated => $self->deprecated,
59 deprecation => $self->deprecation,
60 };
61 }
62  
63  
64  
65 60 1;
66  
67 __END__
« lib/WWW/Hetzner/Cloud.pm ↑ Summary lib/WWW/Hetzner/Cloud/Datacenter.pm »