File Coverage

blib/lib/Slack/RTM/Bot/Response.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 16 17 94.1


line stmt bran cond sub pod time code
1             package Slack::RTM::Bot::Response;
2            
3 8     8   57 use strict;
  8         18  
  8         228  
4 8     8   42 use warnings;
  8         23  
  8         822  
5            
6             sub new {
7 5     5 0 12 my $pkg = shift;
8 5         16 my $args = {@_};
9 5         9 my $self = {%{$args->{buffer}}};
  5         22  
10 5         13 $self->{user} = $args->{user};
11 5         9 $self->{channel} = $args->{channel};
12 5         19 return bless $self, $pkg;
13             }
14            
15             1;