Class: Backup::Configuration::Mail

Inherits:
Object
  • Object
show all
Extended by:
Attributes
Defined in:
lib/backup/configuration/mail.rb

Instance Method Summary collapse

Methods included from Attributes

generate_attributes

Constructor Details

#initializeMail

Returns a new instance of Mail.



7
8
9
# File 'lib/backup/configuration/mail.rb', line 7

def initialize
  @smtp_configuration = Backup::Configuration::SMTP.new
end

Instance Method Details

#get_smtp_configurationObject



15
16
17
# File 'lib/backup/configuration/mail.rb', line 15

def get_smtp_configuration
  @smtp_configuration
end

#smtp(&block) ⇒ Object



11
12
13
# File 'lib/backup/configuration/mail.rb', line 11

def smtp(&block)
  @smtp_configuration.instance_eval &block
end