PulseMeter.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
new
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::PulseMeter;
2 use strict;
3  
4 BEGIN {
5 use Exporter ();
6 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
7 $VERSION = '0.07';
8 @ISA = qw(Exporter);
9 #Give a hoot don't pollute, do not export more than needed by default
10 @EXPORT = qw();
11 @EXPORT_OK = qw();
12 %EXPORT_TAGS = ();
13 }
14  
15  
16 sub new
17 {
18 my ($class, %parameters) = @_;
19  
20 my $self = bless ({}, ref ($class) || $class);
21  
22 return $self;
23 }
24  
25  
26 #################### main pod documentation begin ###################
27  
28 =head1 NAME
29  
30 PulseMeter - Perl implementation of pulse-meter gem
31  
32 =head1 SYNOPSIS
33  
34 use Redis;
35 use Net::PulseMeter::Sensor::Base;
36 use Net::PulseMeter::Sensor::Timelined::Counter;
37  
38 my $redis = Redis->new;
39 Net::PulseMeter::Sensor::Base->redis($redis);
40  
41 my $sensor = Net::PulseMeter::Sensor::Timelined::Counter->new(
42 "sensor_name",
43 raw_data_ttl => 3600,
44 interval => 10
45 );
46 $sensor->event(10);
47  
48  
49 =head1 DESCRIPTION
50  
51 This module is a minimal implementation of L<pulse-meter gem|https://github.com/savonarola/pulse-meter> client.
52 You can read more about pulse-meter concepts and features in L<gem documentation|https://github.com/savonarola/pulse-meter#features>.
53  
54 This module's main purpose is to allow send data to static or timelined
55 sensors from perl client. Note that it just sends data, nothing more:
56 no summarization and visualization is provided.
57  
58 Basic usage is described in section above. Other sensors are initialized
59 in the same way similar to their ruby counterparts.
60  
61  
62 =head1 AUTHOR
63  
64 Sergey Averyanov, Ilya Averyanov
65 averyanov@gmail.com, ilya.averyanov@gmail.com
66  
67 =head1 COPYRIGHT
68  
69 This program is free software; you can redistribute
70 it and/or modify it under the same terms as Perl itself.
71  
72 The full text of the license can be found in the
73 LICENSE file included with this module.
74  
75  
76 =cut
77  
78 #################### main pod documentation end ###################
79  
80 1;