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
12 13 14 15 16 17 18 19 20 |
# File 'lib/eye/notify/awssdk.rb', line 12 def execute = { region: "us-east-1" } # default to us-east-1 [:region] = region if region if access_key_id && secret_access_key [:credentials] = Aws::Credentials.new(access_key_id, secret_access_key) end client = Aws::SES::Client.new() client.send_email() end |
#message ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/eye/notify/awssdk.rb', line 22 def { source: from, destination: { to_addresses: [contact] }, message: { subject: { data: }, body: { text: { data: }, html: { data: } } } } end |