Class: Maildis::SmtpServer

Inherits:
Object
  • Object
show all
Defined in:
lib/maildis/smtp_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port, username, password) ⇒ SmtpServer

Returns a new instance of SmtpServer.



5
6
7
8
9
10
# File 'lib/maildis/smtp_server.rb', line 5

def initialize(host, port, username, password)
  @host = host
  @port = port
  @username = username
  @password = password
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/maildis/smtp_server.rb', line 4

def host
  @host
end

#passwordObject (readonly)

Returns the value of attribute password.



4
5
6
# File 'lib/maildis/smtp_server.rb', line 4

def password
  @password
end

#portObject (readonly)

Returns the value of attribute port.



4
5
6
# File 'lib/maildis/smtp_server.rb', line 4

def port
  @port
end

#usernameObject (readonly)

Returns the value of attribute username.



4
5
6
# File 'lib/maildis/smtp_server.rb', line 4

def username
  @username
end