Class: AwsAlertMonitor::Emailer

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-alert-monitor/emailer.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Emailer

Returns a new instance of Emailer.



5
6
7
8
9
10
11
# File 'lib/aws-alert-monitor/emailer.rb', line 5

def initialize(args)
  @body    = args['body']
  @emailer = args['emailer']
  @from    = args['from']
  @subject = args['subject']
  @to      = Array(args['to'])
end

Instance Method Details

#send_emailObject



13
14
15
# File 'lib/aws-alert-monitor/emailer.rb', line 13

def send_email
  emailer.send_email email_options
end