Bonusly/Leaderboards.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 12 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 97.3% 36 / 37 CC 7 SCAR 16.5
CC
7
Cov
100%
standouts
7.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.2
« Bonusly/Service.pm ↑ Summary Bonusly/Authentication.pm »
1 ### AUTO-GENERATED FILE ###
2 ### DO NOT EDIT. YOUR CHANGES WILL BE LOST. ###
3 package WebService::Bonusly::Leaderboards;
4 1 $WebService::Bonusly::Leaderboards::VERSION = '1.001';
5 1 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 extends 'WebService::Bonusly::Service';
10  
11 # ABSTRACT: Implements the bonus.ly leaderboards service
12  
13  
14  
15 8 ▶sub standouts {
Subroutine standouts: called CC=7 SCAR=19.5
Pod undocumented
16 8 my ($self, %params) = @_;
17  
18 8 my %clean;
19
20 $clean{role} = delete $params{role}
21 8 ▶ if defined $params{role};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"role"} 7 1 8
22
23 $clean{value} = delete $params{value}
24 8 ▶ if defined $params{value};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"value"} 6 2 8
25
26 $clean{limit} = delete $params{limit}
27 8 ▶ if defined $params{limit};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"limit"} 5 3 8
28
29 $clean{period} = delete $params{period}
30 8 ▶ if defined $params{period};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"period"} 4 4 8
31
32 $clean{custom_property_name} = delete $params{custom_property_name}
33 8 ▶ if defined $params{custom_property_name};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"custom_property_name"} 3 5 8
34
35 $clean{custom_property_value} = delete $params{custom_property_value}
36 8 ▶ if defined $params{custom_property_value};
Branch: 1 branch
BranchTrueFalseTotal
if defined $params{"custom_property_value"} 2 6 8
37
38
39 8 return $self->_perform_action(
40 'GET',
41 'analytics/standouts',
42 \%clean,
43
44 );
45 }
46  
47  
48 1 __PACKAGE__->meta->make_immutable;
49  
50 __END__
« Bonusly/Service.pm ↑ Summary Bonusly/Authentication.pm »