Class: Backup::Notifier::Ses
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Amazon Simple Email Service (SES) Credentials.
-
#bcc ⇒ Object
BCC receiver Email Address.
-
#cc ⇒ Object
CC receiver Email Address.
-
#from ⇒ Object
Sender Email Address.
-
#region ⇒ Object
SES Region.
-
#reply_to ⇒ Object
Set reply to email address.
-
#secret_access_key ⇒ Object
Amazon Simple Email Service (SES) Credentials.
-
#send_log_on ⇒ Object
Array of statuses for which the log file should be attached.
-
#to ⇒ Object
Receiver Email Address.
Attributes inherited from Base
#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ Ses
constructor
A new instance of Ses.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, &block) ⇒ Ses
Returns a new instance of Ses.
34 35 36 37 38 39 40 |
# File 'lib/backup/notifier/ses.rb', line 34 def initialize(model, &block) super instance_eval(&block) if block_given? @region ||= "eu-west-1" @send_log_on ||= [:warning, :failure] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#access_key_id ⇒ Object
Amazon Simple Email Service (SES) Credentials
8 9 10 |
# File 'lib/backup/notifier/ses.rb', line 8 def access_key_id @access_key_id end |
#bcc ⇒ Object
BCC receiver Email Address
28 29 30 |
# File 'lib/backup/notifier/ses.rb', line 28 def bcc @bcc end |
#cc ⇒ Object
CC receiver Email Address
24 25 26 |
# File 'lib/backup/notifier/ses.rb', line 24 def cc @cc end |
#from ⇒ Object
Sender Email Address
16 17 18 |
# File 'lib/backup/notifier/ses.rb', line 16 def from @from end |
#region ⇒ Object
SES Region
12 13 14 |
# File 'lib/backup/notifier/ses.rb', line 12 def region @region end |
#reply_to ⇒ Object
Set reply to email address
32 33 34 |
# File 'lib/backup/notifier/ses.rb', line 32 def reply_to @reply_to end |
#secret_access_key ⇒ Object
Amazon Simple Email Service (SES) Credentials
8 9 10 |
# File 'lib/backup/notifier/ses.rb', line 8 def secret_access_key @secret_access_key end |
#send_log_on ⇒ Object
Array of statuses for which the log file should be attached.
Available statuses are: ‘:success`, `:warning` and `:failure`. Default: [:warning, :failure]
47 48 49 |
# File 'lib/backup/notifier/ses.rb', line 47 def send_log_on @send_log_on end |
#to ⇒ Object
Receiver Email Address
20 21 22 |
# File 'lib/backup/notifier/ses.rb', line 20 def to @to end |