Class: T::Mailer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/t/mailer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


52
53
54
55
56
57
58
59
60
61
# File 'lib/t/mailer.rb', line 52

def initialize
  %w(
    AWS_ACCESS_KEY_ID
    AWS_DEFAULT_REGION
    AWS_SECRET_ACCESS_KEY
    SPARKPOST_API_KEY
  ).each do |variable_name|
    set_credential(variable_name)
  end
end

Instance Attribute Details

#aws_access_key_idObject

Amazon AWS SES


46
47
48
# File 'lib/t/mailer.rb', line 46

def aws_access_key_id
  @aws_access_key_id
end

#aws_default_regionObject

Returns the value of attribute aws_default_region.


47
48
49
# File 'lib/t/mailer.rb', line 47

def aws_default_region
  @aws_default_region
end

#aws_secret_access_keyObject

Returns the value of attribute aws_secret_access_key.


48
49
50
# File 'lib/t/mailer.rb', line 48

def aws_secret_access_key
  @aws_secret_access_key
end

#sparkpost_api_keyObject

SparkPost


50
51
52
# File 'lib/t/mailer.rb', line 50

def sparkpost_api_key
  @sparkpost_api_key
end