RFXCOM/Response/DateTime.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod 100% 7 / 7 totaltotal 100% 44 / 44 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RFXCOM/Encoder.pm ↑ Summary RFXCOM/Response/Thermostat.pm »
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::DateTime;
4 4 $Device::RFXCOM::Response::DateTime::VERSION = '1.142010';
5 # ABSTRACT: Device::RFXCOM::Response class for DateTime 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_DATETIME_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 1 ▶ my ($pkg, %p) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
15 1 bless { %p }, $pkg;
16 }
17  
18  
19 1 ▶sub type { 'datetime' }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
20  
21  
22 1 ▶sub device { shift->{device} }
Subroutine device: called CC=1 SCAR=0.0
Pod documented
23  
24  
25 1 ▶sub date { shift->{date} }
Subroutine date: called CC=1 SCAR=0.0
Pod documented
26  
27  
28 1 ▶sub time { shift->{time} }
Subroutine time: called CC=1 SCAR=0.0
Pod documented
29  
30  
31 1 ▶sub day { shift->{day} }
Subroutine day: called CC=1 SCAR=0.0
Pod documented
32  
33  
34 sub summary {
35 1 ▶ my $self = shift;
Subroutine summary: called CC=1 SCAR=0.0
Pod documented
36 1 $self->type.'/'.$self->device.'='.$self->date.' '.$self->time.' '.$self->day;
37 }
38  
39 4 1;
40  
41 __END__
« RFXCOM/Encoder.pm ↑ Summary RFXCOM/Response/Thermostat.pm »