Hetzner/API/PrimaryServers.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 45.4% 5 / 11 Podpod 100% 5 / 5 totaltotal 70.7% 29 / 41 CC 1 SCAR 3.8
CC
1
Cov
76%
list
2.0
create
2.0
delete
2.0
CRAP 1.5
« Hetzner/API/Records.pm ↑ Summary Hetzner.pm »
1 package DNS::Hetzner::API::PrimaryServers;
2 2 $DNS::Hetzner::API::PrimaryServers::VERSION = '0.05';
3 # ABSTRACT: PrimaryServers
4  
5 # ---
6 # This class is auto-generated by bin/get_hetzner_info.pl
7 # ---
8  
9 2 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use Types::Standard qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 ▶use Mojo::Base -strict, -signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 extends 'DNS::Hetzner::APIBase';
17  
18 2 with 'MooX::Singleton';
19  
20 2 ▶use DNS::Hetzner::Schema;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 0 ▶has endpoint => ( is => 'ro', isa => Str, default => sub { 'primary_servers' } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
23  
24 0 ▶sub list ($self, %params) {
Subroutine list: not called CC=1 SCAR=6.9
Pod documented
25 0 return $self->_do( 'GetPrimaryServers', \%params, '', { type => 'get' } );
26 }
27  
28 0 ▶sub create ($self, %params) {
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
29 0 return $self->_do( 'CreatePrimaryServer', \%params, '', { type => 'post' } );
30 }
31  
32 0 ▶sub delete ($self, %params) {
Subroutine delete: not called CC=1 SCAR=6.9
Pod documented
33 0 return $self->_do( 'DeletePrimaryServer', \%params, '/:PrimaryServerID', { type => 'delete' } );
34 }
35  
36 0 ▶sub get ($self, %params) {
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
37 0 return $self->_do( 'GetPrimaryServer', \%params, '/:PrimaryServerID', { type => 'get' } );
38 }
39  
40 0 ▶sub update ($self, %params) {
Subroutine update: not called CC=1 SCAR=6.9
Pod documented
41 0 return $self->_do( 'UpdatePrimaryServer', \%params, '/:PrimaryServerID', { type => 'put' } );
42 }
43  
44  
45 2 1;
46  
47 __END__
« Hetzner/API/Records.pm ↑ Summary Hetzner.pm »