Hetzner/API/Records.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 46.1% 6 / 13 Podpod 100% 7 / 7 totaltotal 70.2% 33 / 47 CC 1 SCAR 4.3
CC
1
Cov
74%
list
2.0
create
2.0
bulk_create
2.0
CRAP 1.5
« Hetzner/API/Zones.pm ↑ Summary Hetzner/API/PrimaryServers.pm »
1 package DNS::Hetzner::API::Records;
2 2 $DNS::Hetzner::API::Records::VERSION = '0.05';
3 # ABSTRACT: Records
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 1 ▶has endpoint => ( is => 'ro', isa => Str, default => sub { 'records' } );
Subroutine __ANON__: called CC=1 SCAR=0.0
23  
24 0 ▶sub list ($self, %params) {
Subroutine list: not called CC=1 SCAR=6.9
Pod documented
25 0 return $self->_do( 'GetRecords', \%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( 'CreateRecord', \%params, '', { type => 'post' } );
30 }
31  
32 0 ▶sub bulk_create ($self, %params) {
Subroutine bulk_create: not called CC=1 SCAR=6.9
Pod documented
33 0 return $self->_do( 'BulkCreateRecords', \%params, '/bulk', { type => 'post' } );
34 }
35  
36 0 ▶sub bulk_update ($self, %params) {
Subroutine bulk_update: not called CC=1 SCAR=6.9
Pod documented
37 0 return $self->_do( 'BulkUpdateRecords', \%params, '/bulk', { type => 'put' } );
38 }
39  
40 0 ▶sub delete ($self, %params) {
Subroutine delete: not called CC=1 SCAR=6.9
Pod documented
41 0 return $self->_do( 'DeleteRecord', \%params, '/:RecordID', { type => 'delete' } );
42 }
43  
44 0 ▶sub get ($self, %params) {
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
45 0 return $self->_do( 'GetRecord', \%params, '/:RecordID', { type => 'get' } );
46 }
47  
48 0 ▶sub update ($self, %params) {
Subroutine update: not called CC=1 SCAR=6.9
Pod documented
49 0 return $self->_do( 'UpdateRecord', \%params, '/:RecordID', { type => 'put' } );
50 }
51  
52  
53 2 1;
54  
55 __END__
« Hetzner/API/Zones.pm ↑ Summary Hetzner/API/PrimaryServers.pm »