Method: Eye::Notify::AWSSDK#message

Defined in:
lib/eye/notify/awssdk.rb

#messageObject



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 message
  {
    source: from,
    destination: {
      to_addresses: [contact],
    },
    message: {
      subject: {
        data: message_subject,
      },
      body: {
        text: {
          data: message_body,
        },
        html: {
          data: message_body,
        },
      },
    },
  }
end