File Coverage

lib/Catan/Resource/Brick.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Catan::Resource::Brick;
2             $Catan::Resource::Brick::VERSION = '0.02';
3 7     7   863 use strict;
  7         10  
  7         162  
4 7     7   30 use warnings;
  7         13  
  7         166  
5 7     7   708 use parent 'Catan::Resource';
  7         297  
  7         31  
6              
7             sub new
8             {
9 21     21 0 39 my ($class, $quantity) = @_;
10 21         63 my $self = $class->SUPER::new($quantity);
11 21         53 $self->{name} = 'Brick';
12 21         30 $self->{code} = 'B';
13 21         92 return $self;
14             }
15             1;
16              
17             __END__