File Coverage

lib/Beekeeper/JSONRPC/Notification.pm
Criterion Covered Total %
statement 6 12 50.0
branch n/a
condition n/a
subroutine 2 7 28.5
pod 4 5 80.0
total 12 24 50.0


line stmt bran cond sub pod time code
1             package Beekeeper::JSONRPC::Notification;
2              
3 11     11   81 use strict;
  11         25  
  11         327  
4 11     11   58 use warnings;
  11         22  
  11         1977  
5              
6             our $VERSION = '0.08';
7              
8              
9             sub new {
10 0     0 0   my $class = shift;
11              
12 0           bless {
13             jsonrpc => '2.0',
14             method => undef,
15             params => undef,
16             @_
17             }, $class;
18             }
19              
20 0     0 1   sub method { $_[0]->{method} }
21 0     0 1   sub params { $_[0]->{params} }
22 0     0 1   sub id { undef }
23              
24             sub mqtt_properties {
25 0     0 1   $_[0]->{_mqtt_properties};
26             }
27              
28             1;
29              
30             __END__