| 1 | ### AUTO-GENERATED FILE ### | ||||||||||
| 2 | ### DO NOT EDIT. YOUR CHANGES WILL BE LOST. ### | ||||||||||
| 3 | package WebService::Bonusly::Redemptions; | ||||||||||
| 4 | 1 | $WebService::Bonusly::Redemptions::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 redemptions service | ||||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 3 | ▶ | sub get { | ||||||||
|
Subroutine
get: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 16 | 3 | my ($self, %params) = @_; | |||||||||
| 17 | |||||||||||
| 18 | 3 | my %clean; | |||||||||
| 19 | |||||||||||
| 20 | croak "parameter id is required for redemptions->get" | ||||||||||
| 21 | 3 | ▶ | unless defined $params{id}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | |||||||||||
| 23 | $clean{id} = delete $params{id} | ||||||||||
| 24 | 2 | ▶ | if defined $params{id}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 2 | return $self->_perform_action( | |||||||||
| 28 | 'GET', | ||||||||||
| 29 | 'redemptions/:id', | ||||||||||
| 30 | \%clean, | ||||||||||
| 31 | |||||||||||
| 32 | ); | ||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||