File Coverage

blib/lib/Chef/REST/Client/attribute.pm
Criterion Covered Total %
statement 0 11 0.0
branch 0 4 0.0
condition n/a
subroutine 0 3 0.0
pod 2 3 66.6
total 2 21 9.5


line stmt bran cond sub pod time code
1             #--------------------------------------------------------------------#
2             # @class : Chef::Rest::Client::attribute #
3             # @author : Bhavin Patel #
4             #--------------------------------------------------------------------#
5              
6             package Chef::REST::Client::attribute;
7             $Chef::REST::Client::attribute::VERSION = 1.0;
8              
9             sub new
10             {
11 0     0 0   my $class = shift;
12 0           my $param = {@_};
13 0           my $self = {};
14 0           bless $self, $class;
15            
16 0           $self->key ( $param->{'key' });
17 0           $self->value( $param->{'value'});
18              
19 0           return $self;
20             }
21              
22 0 0   0 1   sub key { $_[0]->{'key' } = $_[1] if defined $_[1]; return $_[0]->{'key' }; }
  0            
23 0 0   0 1   sub value { $_[0]->{'value'} = $_[1] if defined $_[1]; return $_[0]->{'value'}; }
  0            
24              
25             1;
26              
27             __DATA__