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