Class: RedisCacheMailerDelivery::Settings
- Inherits:
-
Object
- Object
- RedisCacheMailerDelivery::Settings
- Defined in:
- lib/redis_cache_mailer_delivery/settings.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(settings) ⇒ Settings
constructor
A new instance of Settings.
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_values ⇒ Object
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 |