Sha256: 23a1d94f85dbbdbbe1c4913acc6b52b6ed92d3836fabd6d4d1a1e8b05999ac77
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
module AwsAlertMonitor class Emailer def initialize(args) @body = args['body'] @emailer = args['emailer'] @from = args['from'] @subject = args['subject'] @to = Array(args['to']) end def send_email emailer.send_email email_options end private def email_options { :source => @from, :destination => { :to_addresses => @to }, :message => { :subject => { :data => @subject }, :body => { :text => { :data => @body } } } } end def emailer @emailer ||= AwsAlertMonitor::AWS::SES.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-alert-monitor-0.1.0 | lib/aws-alert-monitor/emailer.rb |
aws-alert-monitor-0.0.5 | lib/aws-alert-monitor/emailer.rb |