PaymentsAdvanced/Role/HasMessage.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PaymentsAdvanced/Role/ClassFor.pm ↑ Summary PaymentsAdvanced/Role/HasParams.pm »
1 package WebService::PayPal::PaymentsAdvanced::Role::HasMessage;
2  
3 8 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 8 our $VERSION = '0.000028';
8  
9 8 ▶use Types::Common::String qw( NonEmptyStr );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 8 has message => (
12 is => 'lazy',
13 isa => NonEmptyStr,
14 init_arg => undef,
15 );
16  
17 8 ▶sub _build_message {
Subroutine _build_message: called CC=1 SCAR=0.0
18 8 my $self = shift;
19 8 return $self->params->{RESPMSG};
20 }
21  
22 8 1;
23  
24 =pod
25  
26 =encoding UTF-8
27  
28 =head1 NAME
29  
30 WebService::PayPal::PaymentsAdvanced::Role::HasMessage - Role which provides message attribute to exception and response classes.
31  
32 =head1 VERSION
33  
34 version 0.000028
35  
36 =head1 SUPPORT
37  
38 Bugs may be submitted through L<https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues>.
39  
40 =head1 AUTHOR
41  
42 Olaf Alders <olaf@wundercounter.com>
43  
44 =head1 COPYRIGHT AND LICENSE
45  
46 This software is copyright (c) 2022 by MaxMind, Inc.
47  
48 This is free software; you can redistribute it and/or modify it under
49 the same terms as the Perl 5 programming language system itself.
50  
51 =cut
52  
53 __END__
« PaymentsAdvanced/Role/ClassFor.pm ↑ Summary PaymentsAdvanced/Role/HasParams.pm »