File Coverage

blib/lib/Device/WallyHome/Sensor/Location.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::Location;
2 1     1   5 use Moose;
  1         2  
  1         7  
3 1     1   5454 use MooseX::AttributeShortcuts;
  1         2  
  1         11  
4 1     1   2640 use namespace::autoclean;
  1         1  
  1         12  
5              
6             our $VERSION = '0.21.2';
7              
8              
9             #== ATTRIBUTES =================================================================
10              
11             has 'id' => (
12             is => 'ro',
13             isa => 'Str',
14             required => 1,
15             writer => '_id',
16             );
17              
18             has 'placeId' => (
19             is => 'ro',
20             isa => 'Str',
21             required => 1,
22             writer => '_placeId',
23             );
24              
25             has 'sensorId' => (
26             is => 'ro',
27             isa => 'Str',
28             required => 1,
29             writer => '_sensorId',
30             );
31             has 'room' => (
32             is => 'ro',
33             isa => 'Str',
34             required => 1,
35             writer => '_room',
36             );
37             has 'appliance' => (
38             is => 'ro',
39             isa => 'Maybe[Str]',
40             writer => '_appliance',
41             );
42             has 'floor' => (
43             is => 'ro',
44             isa => 'Maybe[Str]',
45             writer => '_floor',
46             );
47             has 'functionalType' => (
48             is => 'ro',
49             isa => 'Maybe[Str]',
50             writer => '_functionalType',
51             );
52             has 'created' => (
53             is => 'ro',
54             isa => 'Str',
55             required => 1,
56             writer => '_created',
57             );
58             has 'updated' => (
59             is => 'ro',
60             isa => 'Str',
61             required => 1,
62             writer => '_updated',
63             );
64              
65              
66             __PACKAGE__->meta->make_immutable;
67              
68             1;