File Coverage

blib/lib/CloudHealth/API/Call/RetrievePerspectiveSchema.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package CloudHealth::API::Call::RetrievePerspectiveSchema;
2 1     1   628 use Moo;
  1         3  
  1         7  
3 1     1   412 use MooX::StrictConstructor;
  1         2  
  1         8  
4 1     1   1166 use Types::Standard qw/Str Int Bool/;
  1         3  
  1         8  
5              
6             has include_version => (is => 'ro', isa => Bool);
7             has perspective_id => (is => 'ro', isa => Str, required => 1);
8              
9             sub _query_params { [
10 1     1   6 { name => 'include_version' },
11             ] }
12             sub _url_params { [
13 1     1   6 { name => 'perspective_id', location => 'perspective-id' }
14             ] }
15 1     1   21 sub _method { 'GET' }
16 1     1   4 sub _url { 'https://chapi.cloudhealthtech.com/v1/perspective_schemas/:perspective-id' }
17              
18             1;