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.03';
3 7     7   774 use strict;
  7         13  
  7         174  
4 7     7   34 use warnings;
  7         12  
  7         226  
5 7     7   807 use parent 'Catan::Resource';
  7         301  
  7         34  
6              
7             sub new
8             {
9 175     175 0 318 my ($class, $quantity) = @_;
10 175         453 my $self = $class->SUPER::new($quantity);
11 175         367 $self->{name} = 'Brick';
12 175         313 $self->{code} = 'B';
13 175         656 return $self;
14             }
15             1;
16              
17             __END__