File Coverage

blib/lib/Device/WallyHome/Sensor/State.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Device::WallyHome::Sensor::State;
2 1     1   5 use Moose;
  1         1  
  1         7  
3 1     1   5134 use MooseX::AttributeShortcuts;
  1         2  
  1         10  
4 1     1   2800 use namespace::autoclean;
  1         2  
  1         10  
5              
6             our $VERSION = 0.01;
7              
8              
9             #== ATTRIBUTES =================================================================
10              
11             has 'name' => (
12             is => 'ro',
13             isa => 'Str',
14             required => 1,
15             writer => '_name',
16             );
17              
18             has 'value' => (
19             is => 'ro',
20             isa => 'Maybe[Num]',
21             required => 1,
22             writer => '_min',
23             );
24              
25             has 'at' => (
26             is => 'ro',
27             isa => 'Str',
28             required => 1,
29             writer => '_max',
30             );
31              
32              
33             __PACKAGE__->meta->make_immutable;
34              
35             1;