Sha256: 8f2c5c140f94ded9b58746cbaa3588be940219ab53d0690ec0ff7da31073e2d7
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
module Backup module Configuration class Mail attr_accessor :attributes %w(from to smtp).each do |method| define_method method do |value| attributes[method.to_sym] = value end end def initialize @attributes = {} @smtp_configuration = Backup::Configuration::SMTP.new end def smtp(&block) @smtp_configuration.instance_eval &block end def get_smtp_configuration @smtp_configuration end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-2.3.1 | lib/backup/configuration/mail.rb |