diff options
author | Struan Donald <struan@exo.org.uk> | 2012-02-27 15:21:41 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-02-27 15:21:41 +0000 |
commit | 21b82d30b9348c3de50f711d8b7c80bcdaf2c756 (patch) | |
tree | 51d2551231255e558dc6d630cb576d7716be7a62 /perllib/FixMyStreet/SendReport/London.pm | |
parent | 6b5a40f54eb4ef87724ecbd53513cf707b00d106 (diff) |
put something in the base class and make things inherit from it
Diffstat (limited to 'perllib/FixMyStreet/SendReport/London.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/London.pm | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/SendReport/London.pm b/perllib/FixMyStreet/SendReport/London.pm index cb76c7a24..29368314f 100644 --- a/perllib/FixMyStreet/SendReport/London.pm +++ b/perllib/FixMyStreet/SendReport/London.pm @@ -1,25 +1,16 @@ package FixMyStreet::SendReport::Email; +use Moose; +use namespace::autoclean; + +BEGIN { extends 'FixMyStreet::SendReport'; } + use Digest::MD5; use LWP::UserAgent; use LWP::Simple; use Utils; -my %councils = (); -my @to; - -sub reset { - %councils = (); - @to = (); -} - -sub add_council { - my $council = shift; - my $name = shift; - - $councils{ $council } = $name; -} sub construct_message { my %h = @_; return <<EOF, |