Sha256: 90e6e0ef83be69c776abee4280cd7d9e57bcf0036f4082b853c817c3db8710e8

Contents?: true

Size: 473 Bytes

Versions: 18

Compression:

Stored size: 473 Bytes

Contents

require "aws/ses"

class Eye::Notify::SES < Eye::Notify

  param :access_key_id, String, true
  param :secret_access_key, String, true
  param :from, String, true

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

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

Eye::Notify::TYPES[:ses] = "SES"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
eye-patch-0.2.2 lib/eye/notify/ses.rb
eye-patch-0.2.1 lib/eye/notify/ses.rb
eye-patch-0.2.0 lib/eye/notify/ses.rb
eye-patch-0.1.8 lib/eye/notify/ses.rb
eye-patch-0.1.7 lib/eye/notify/ses.rb
eye-patch-0.1.6 lib/eye/notify/ses.rb
eye-patch-0.1.5 lib/eye/notify/ses.rb
eye-patch-0.1.4 lib/eye/notify/ses.rb
eye-patch-0.1.3 lib/eye/notify/ses.rb
eye-patch-0.1.2 lib/eye/notify/ses.rb
eye-patch-0.1.1 lib/eye/notify/ses.rb
eye-patch-0.1.0 lib/eye/notify/ses.rb
eye-patch-0.0.9 lib/eye/notify/ses.rb
eye-patch-0.0.8 lib/eye/notify/ses.rb
eye-patch-0.0.7 lib/eye/notify/ses.rb
eye-patch-0.0.6 lib/eye/notify/ses.rb
eye-patch-0.0.5 lib/eye/notify/ses.rb
eye-patch-0.0.4 lib/eye/notify/ses.rb