| 1 | ### AUTO-GENERATED FILE ### | ||||||||||||||||||||||||||||
| 2 | ### DO NOT EDIT. YOUR CHANGES WILL BE LOST. ### | ||||||||||||||||||||||||||||
| 3 | package WebService::Bonusly::Companies; | ||||||||||||||||||||||||||||
| 4 | 1 | $WebService::Bonusly::Companies::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 companies service | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 2 | ▶ | sub show { | ||||||||||||||||||||||||||
|
Subroutine
show: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 16 | 2 | my ($self, %params) = @_; | |||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 2 | my %clean; | |||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 2 | return $self->_perform_action( | |||||||||||||||||||||||||||
| 22 | 'GET', | ||||||||||||||||||||||||||||
| 23 | 'companies/show', | ||||||||||||||||||||||||||||
| 24 | \%clean, | ||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | ); | ||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 4 | ▶ | sub update { | ||||||||||||||||||||||||||
|
Subroutine
update: called CC=5 SCAR=16.2
Pod
undocumented
| |||||||||||||||||||||||||||||
| 30 | 4 | my ($self, %params) = @_; | |||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 4 | my %clean; | |||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | $clean{name} = delete $params{name} | ||||||||||||||||||||||||||||
| 35 | 4 | ▶ | if defined $params{name}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | croak "parameter custom_properties must be a HASH for companies->update" | ||||||||||||||||||||||||||||
| 38 | 4 | ▶ | if defined $params{custom_properties} and ref($params{custom_properties}) ne 'HASH'; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $params{"custom_properties"} and ref $params{"custom_properties"} ne "HASH"
MC/DC0%0/2
defined $params{"custom_properties"} and ref $params{"custom_properties"} ne "HASH"
defined $params{"custom_properties"}
ref $params{"custom_properties"} ne "HASH"
Truth table66%2/3
A and B
A= defined $params{"custom_properties"}B= ref $params{"custom_properties"} ne "HASH"
| |||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||
| 40 | $clean{custom_properties} = delete $params{custom_properties} | ||||||||||||||||||||||||||||
| 41 | 4 | ▶ | if defined $params{custom_properties}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||
| 44 | 4 | return $self->_perform_action( | |||||||||||||||||||||||||||
| 45 | 'PUT', | ||||||||||||||||||||||||||||
| 46 | 'companies/update', | ||||||||||||||||||||||||||||
| 47 | \%clean, | ||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | ); | ||||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||
| 53 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||
| 55 | __END__ | ||||||||||||||||||||||||||||