File Coverage

blib/lib/Tanker/Request.pm
Criterion Covered Total %
statement 6 13 46.1
branch n/a
condition 0 6 0.0
subroutine 2 4 50.0
pod 0 2 0.0
total 8 25 32.0


line stmt bran cond sub pod time code
1             package Tanker::Request;
2              
3 1     1   6 use strict;
  1         2  
  1         32  
4 1     1   5 use warnings;
  1         1  
  1         135  
5              
6              
7             sub new ($$)
8             {
9             # standard stuff for creating a new object
10             # I'm not sure if this *should* be an object
11             # but I think it'll probably be useful in the end
12 0     0 0   my $proto = shift;
13 0   0       my $class = ref($proto) || $proto;
14            
15             # yes, we must have a variable hash
16 0   0       my $self = shift || warn "No variable hash was passed to this Request\n";
17              
18             # bless our self into a hash
19 0           bless ($self, $class);
20              
21             # and give it on back
22 0           return $self;
23             }
24              
25             sub get_data ($)
26             {
27 0     0 0   my ($self) = @_;
28              
29 0           return $self->{data};
30             }
31              
32              
33              
34             1;
35             __END__