Class: Eye::Notify::AWSSDK
- Inherits:
-
Eye::Notify
- Object
- Eye::Notify
- Eye::Notify::AWSSDK
- Defined in:
- lib/eye/notify/awssdk.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/eye/notify/awssdk.rb', line 24 def execute = { region: "us-east-1" } # default to us-east-1 [:region] = region if region [:credentials] = Aws::Credentials.new(access_key_id, secret_access_key) if access_key_id && secret_access_key client = Aws::SES::Client.new() client.send_email() end |
#message ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/eye/notify/awssdk.rb', line 32 def { source: from, destination: { to_addresses: [contact], }, message: { subject: { data: , }, body: { text: { data: , }, html: { data: , }, }, }, } end |