File Coverage

blib/lib/Apertur/SDK/Resource/Encryption.pm
Criterion Covered Total %
statement 8 10 80.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 2 50.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Apertur::SDK::Resource::Encryption;
2              
3 1     1   7 use strict;
  1         2  
  1         40  
4 1     1   8 use warnings;
  1         2  
  1         191  
5              
6             sub new {
7 3     3 0 18 my ($class, %args) = @_;
8 3         16 return bless { http => $args{http} }, $class;
9             }
10              
11             sub get_server_key {
12 0     0 1   my ($self) = @_;
13 0           return $self->{http}->request('GET', '/api/v1/encryption/server-key');
14             }
15              
16             1;
17              
18             __END__