blib/lib/WWW/ORCID/API/v2_0.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 80.7% 21 / 26 SCAR 7.0
CC
2
Cov
84%
_build_api_url
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/WWW/ORCID/Transport/LWP.pm ↑ Summary blib/lib/WWW/ORCID/API/v2_0_public.pm »
1 package WWW::ORCID::API::v2_0;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = 0.02_01;
7  
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 with 'WWW::ORCID::MemberAPI';
12  
13 sub ops {
14 +{
15 1 ▶ 'group-id-record' =>
Subroutine ops: called CC=1 SCAR=0.0
Pod undocumented
16 {get => 1, add => 1, delete => 1, get_pc => 1, update => 1},
17 'activities' => {orcid => 1, get => 1},
18 'address' => {
19 orcid => 1,
20 get => 1,
21 add => 1,
22 delete => 1,
23 get_pc => 1,
24 update => 1
25 },
26 'biography' => {orcid => 1, get => 1},
27 'education' =>
28 {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
29 'education/summary' => {orcid => 1, get_pc => 1},
30 'educations' => {orcid => 1, get => 1},
31 'email' => {orcid => 1, get => 1},
32 'employment' =>
33 {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
34 'employment/summary' => {orcid => 1, get_pc => 1},
35 'employments' => {orcid => 1, get => 1},
36 'external-identifiers' => {
37 orcid => 1,
38 get => 1,
39 add => 1,
40 delete => 1,
41 get_pc => 1,
42 update => 1
43 },
44 'funding' =>
45 {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
46 'funding/summary' => {orcid => 1, get_pc => 1},
47 'fundings' => {orcid => 1, get => 1},
48 'keywords' => {
49 orcid => 1,
50 get => 1,
51 add => 1,
52 delete => 1,
53 get_pc => 1,
54 update => 1
55 },
56 'other-names' => {
57 orcid => 1,
58 get => 1,
59 add => 1,
60 delete => 1,
61 get_pc => 1,
62 update => 1
63 },
64 'peer-review' =>
65 {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
66 'peer-review/summary' => {orcid => 1, get_pc => 1},
67 'peer-reviews' => {orcid => 1, get => 1},
68 'person' => {orcid => 1, get => 1},
69 'personal-details' => {orcid => 1, get => 1},
70 'researcher-urls' => {
71 orcid => 1,
72 get => 1,
73 add => 1,
74 delete => 1,
75 get_pc => 1,
76 update => 1
77 },
78 'work' =>
79 {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
80 'work/summary' => {orcid => 1, get_pc => 1},
81 'works' => {orcid => 1, get => 1, get_pc_bulk => 1},
82 };
83 }
84  
85 sub _build_api_url {
86 0 ▶ $_[0]->sandbox
Subroutine _build_api_url: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->sandbox ? : 0 0 0
87 ? 'https://api.sandbox.orcid.org/v2.0'
88 : 'https://api.orcid.org/v2.0';
89 }
90  
91 1 __PACKAGE__->install_helper_methods;
92  
93 __END__
« blib/lib/WWW/ORCID/Transport/LWP.pm ↑ Summary blib/lib/WWW/ORCID/API/v2_0_public.pm »