Class: ProcessWanker::ConfigSMTPBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/config/config_smtp.rb

Instance Method Summary collapse

Methods inherited from Builder

#build, #klass

Instance Method Details

#auth_method(v) ⇒ Object



90
91
92
# File 'lib/config/config_smtp.rb', line 90

def auth_method(v)
  @config.auth_method=v.to_sym
end

#from_addr(v) ⇒ Object



74
75
76
# File 'lib/config/config_smtp.rb', line 74

def from_addr(v)
  @config.from_addr=v
end

#password(v) ⇒ Object



86
87
88
# File 'lib/config/config_smtp.rb', line 86

def password(v)
  @config.password=v
end

#port(v) ⇒ Object



64
65
66
# File 'lib/config/config_smtp.rb', line 64

def port(v)
  @config.port=v.to_i
end

#secure(v) ⇒ Object



68
69
70
71
72
# File 'lib/config/config_smtp.rb', line 68

def secure(v)
  v=v.to_sym
  raise "bad smtp secure setting" if(![:ssl,:starttls,:tls].include?(v))
  @config.secure=v
end

#server(v) ⇒ Object



60
61
62
# File 'lib/config/config_smtp.rb', line 60

def server(v)
  @config.server=v
end

#to_addrs(*v) ⇒ Object



78
79
80
# File 'lib/config/config_smtp.rb', line 78

def to_addrs(*v)
  @config.to_addrs += v
end

#userid(v) ⇒ Object



82
83
84
# File 'lib/config/config_smtp.rb', line 82

def userid(v)
  @config.userid=v
end