File Coverage

blib/lib/Auth/Kokolores/Response.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 2 0.0
total 8 10 80.0


line stmt bran cond sub pod time code
1             package Auth::Kokolores::Response;
2              
3 2     2   15765 use Moose;
  2         311506  
  2         13  
4              
5             # ABSTRACT: kokolores response object
6             our $VERSION = '1.01'; # VERSION
7              
8             has 'success' => (
9             is => 'ro',
10             isa => 'Bool',
11             default => 0
12             );
13              
14             sub new_success {
15 1     1 0 23 return shift->new( success => 1 );
16             }
17              
18             sub new_fail {
19 1     1 0 23 return shift->new( success => 0 );
20             }
21              
22             1;
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Auth::Kokolores::Response - kokolores response object
33              
34             =head1 VERSION
35              
36             version 1.01
37              
38             =head1 AUTHOR
39              
40             Markus Benning <ich@markusbenning.de>
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>.
45              
46             This is free software, licensed under:
47              
48             The GNU General Public License, Version 2, June 1991
49              
50             =cut