File Coverage

blib/lib/WWW/ORCID/API/v2_0_public.pm
Criterion Covered Total %
statement 16 17 94.1
branch 0 2 0.0
condition n/a
subroutine 6 7 85.7
pod 0 1 0.0
total 22 27 81.4


line stmt bran cond sub pod time code
1             package WWW::ORCID::API::v2_0_public;
2              
3 1     1   56982 use strict;
  1         8  
  1         29  
4 1     1   4 use warnings;
  1         2  
  1         39  
5              
6             our $VERSION = 0.0402;
7              
8 1     1   542 use utf8;
  1         11  
  1         4  
9 1     1   452 use Moo;
  1         8960  
  1         3  
10 1     1   1561 use namespace::clean;
  1         9089  
  1         6  
11              
12             with 'WWW::ORCID::API';
13              
14             sub ops {
15             +{
16 1     1 0 52 'activities' => {orcid => 1, get => 1},
17             'address' => {orcid => 1, get => 1, get_pc => 1},
18             'biography' => {orcid => 1, get => 1},
19             'education' => {orcid => 1, delete => 1, get_pc => 1},
20             'education/summary' => {orcid => 1, get_pc => 1},
21             'educations' => {orcid => 1, get => 1},
22             'email' => {orcid => 1, get => 1},
23             'employment' => {orcid => 1, get_pc => 1},
24             'employment/summary' => {orcid => 1, get_pc => 1},
25             'employments' => {orcid => 1, get => 1},
26             'external-identifiers' => {orcid => 1, get => 1, get_pc => 1},
27             'funding' => {orcid => 1, get_pc => 1},
28             'funding/summary' => {orcid => 1, get_pc => 1},
29             'fundings' => {orcid => 1, get => 1},
30             'keywords' => {orcid => 1, get => 1, get_pc => 1},
31             'other-names' => {orcid => 1, get => 1, get_pc => 1},
32             'peer-review' => {orcid => 1, get_pc => 1},
33             'peer-review/summary' => {orcid => 1, get_pc => 1},
34             'peer-reviews' => {orcid => 1, get => 1},
35             'person' => {orcid => 1, get => 1},
36             'personal-details' => {orcid => 1, get => 1},
37             'researcher-urls' => {orcid => 1, get => 1, get_pc => 1},
38             'work' => {orcid => 1, get_pc => 1},
39             'work/summary' => {orcid => 1, get_pc => 1},
40             'works' => {orcid => 1, get => 1, get_pc_bulk => 1},
41             };
42             }
43              
44             sub _build_api_url {
45 0 0   0     $_[0]->sandbox
46             ? 'https://pub.sandbox.orcid.org/v2.0'
47             : 'https://pub.orcid.org/v2.0';
48             }
49              
50             __PACKAGE__->install_helper_methods;
51              
52             __END__