| 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; |