File Coverage

blib/lib/Business/Giropay/Role/Network.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Business::Giropay::Role::Network;
2              
3             =head1 NAME
4              
5             Business::Giropay::Role::Network - 'network' role consumed by Core, Request and Response roles
6              
7             =cut
8              
9 8     8   3341 use Business::Giropay::Types qw/Enum/;
  8         9  
  8         52  
10 8     8   2534 use Moo::Role;
  8         8  
  8         42  
11              
12             =head1 ATTRIBUTES
13              
14             =head2 network
15              
16             Network type. Currently the following are supported:
17              
18             =over
19              
20             =item * eps
21              
22             =item * giropay
23              
24             =item * ideal
25              
26             =back
27              
28             =cut
29              
30             has network => (
31             is => 'ro',
32             isa => Enum [qw( eps giropay ideal)],
33             required => 1,
34             );
35              
36             1;