File Coverage

blib/lib/WebService/SendInBlue/Response.pm
Criterion Covered Total %
statement 3 13 23.0
branch n/a
condition n/a
subroutine 1 6 16.6
pod 0 5 0.0
total 4 24 16.6


line stmt bran cond sub pod time code
1             package WebService::SendInBlue::Response;
2             {
3             $WebService::SendInBlue::Response::VERSION = '0.005';
4             }
5              
6 4     4   16 use strict;
  4         6  
  4         463  
7              
8             sub new {
9 0     0 0   my ($class, $h) = @_;
10              
11 0           return bless $h, $class;
12             }
13              
14             sub code {
15 0     0 0   my $self = shift;
16 0           return $self->{'code'};
17             }
18              
19             sub message {
20 0     0 0   my $self = shift;
21 0           return $self->{'message'};
22             }
23              
24             sub data {
25 0     0 0   my $self = shift;
26 0           return $self->{'data'};
27             }
28              
29             sub is_success {
30 0     0 0   my $self = shift;
31 0           $self->code eq 'success';
32             }
33              
34             1;