Class: RedisCacheMailerDelivery::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_cache_mailer_delivery/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ Settings

Returns a new instance of Settings.



9
10
11
12
13
# File 'lib/redis_cache_mailer_delivery/settings.rb', line 9

def initialize(settings)
  self.class.default_values.merge(settings).each do |key, value|
    self.class.send(:define_method, key) {value}
  end
end

Class Method Details

.default_valuesObject



4
5
6
7
# File 'lib/redis_cache_mailer_delivery/settings.rb', line 4

def default_values
{:redis_key_name => "redis_cache_mailer_delivery:mail_messages",
  :marshallable_converters => []}
end