blib/lib/Beekeeper/JSONRPC/Notification.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 26 SCAR 6.9
CC
1
Cov
0%
new
2.0
method
2.0
params
2.0
CRAP 2.0
1 package Beekeeper::JSONRPC::Notification;
2  
3 use strict;
4 use warnings;
5  
6 our $VERSION = '0.09';
7  
8  
9 sub new {
10 my $class = shift;
11  
12 bless {
13 jsonrpc => '2.0',
14 method => undef,
15 params => undef,
16 @_
17 }, $class;
18 }
19  
20 sub method { $_[0]->{method} }
21 sub params { $_[0]->{params} }
22 sub id { undef }
23  
24 sub mqtt_properties {
25 $_[0]->{_mqtt_properties};
26 }
27  
28 1;
29  
30 __END__