Class: Eye::Notify::SES

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

Instance Method Summary collapse

Instance Method Details

#executeObject



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

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

#messageObject



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

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