Class: Eye::Notify::SES

Inherits:
Eye::Notify show all
Defined in:
lib/eye/notify/ses.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



11
12
13
14
15
16
# File 'lib/eye/notify/ses.rb', line 11

def execute
  AWS::SES::Base.new(
    access_key_id: access_key_id,
    secret_access_key: secret_access_key,
  ).send_email(message)
end

#messageObject



18
19
20
21
22
23
24
25
# File 'lib/eye/notify/ses.rb', line 18

def message
  {
    to: contact,
    from: from,
    subject: message_subject,
    text_body: message_body,
  }
end