Class: Eye::Notify::SES

Inherits:
Custom
  • Object
show all
Defined in:
lib/eye/notify/ses.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



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

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

#messageObject



16
17
18
19
20
21
# File 'lib/eye/notify/ses.rb', line 16

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