| 1 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | package Device::RFXCOM::Response::HomeEasy; | ||||||||||
| 4 | 4 | $Device::RFXCOM::Response::HomeEasy::VERSION = '1.142010'; | |||||||||
| 5 | # ABSTRACT: Device::RFXCOM::Response class for Home Easy message from RFXCOM receiver | ||||||||||
| 6 | |||||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 4 | ▶ | use constant DEBUG => $ENV{DEVICE_RFXCOM_RESPONSE_HOMEEASY_DEBUG}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | ▶ | use Carp qw/croak/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | sub new { | ||||||||||
| 14 | 3 | ▶ | my ($pkg, %p) = @_; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 15 | 3 | bless { %p }, $pkg; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | 4 | ▶ | sub type { 'homeeasy' } | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 4 | ▶ | sub address { shift->{address} } | ||||||||
|
Subroutine
address: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | 4 | ▶ | sub unit { shift->{unit} } | ||||||||
|
Subroutine
unit: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | 4 | ▶ | sub command { shift->{command} } | ||||||||
|
Subroutine
command: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | 5 | ▶ | sub level { shift->{level} } | ||||||||
|
Subroutine
level: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | sub summary { | ||||||||||
| 35 | 4 | ▶ | my $self = shift; | ||||||||
|
Subroutine
summary: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 36 | 4 | ▶ | sprintf('%s/%s.%s/%s%s', | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | $self->type, | ||||||||||
| 38 | $self->address,$self->unit, | ||||||||||
| 39 | $self->command, | ||||||||||
| 40 | $self->level ? '['.$self->level.']' : ''); | ||||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 4 | 1; | |||||||||
| 44 | |||||||||||
| 45 | __END__ | ||||||||||