Engine/Alerting/Netsocial.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 41 CC 2 SCAR 11.0
CC
2
Cov
0%
new
6.0
method
2.0
BEGIN
2.0
CRAP 3.0
1 package Service::Engine::Alerting::Netsocial;
2  
3 use 5.010;
4 use strict;
5 use warnings;
6 use Data::Dumper;
7  
8 use Service::Engine;
9  
10 our $Config;
11 our $Log;
12  
13 ###>>>TO DO - this is just a stub for alerting methods for NetSocial
14  
15 sub new {
16
17 my ($class,$options) = @_;
18
19 # set some defaults
20 my $attributes = {'method'=>''};
21
22 # load options
23 if (ref($options) eq 'HASH') {
24 foreach my $option (keys %{$options}) {
25 $attributes->{$option} = $options->{$option};
26 }
27 }
28
29 # pull in some Service::Engine globals
30 $Config = $Service::Engine::Config;
31 $Log = $Service::Engine::Log;
32
33 # set some defaults
34
35 my $self = bless $attributes, $class;
36
37 return $self;
38  
39 }
40  
41 sub method {
42 my ($self) = @_;
43 return $self->{'method'};
44 }
45  
46 1;