Class: Maildis::SmtpServer
- Inherits:
-
Object
- Object
- Maildis::SmtpServer
- Defined in:
- lib/maildis/smtp_server.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(host, port, username, password) ⇒ SmtpServer
constructor
A new instance of SmtpServer.
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
4 5 6 |
# File 'lib/maildis/smtp_server.rb', line 4 def host @host end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/maildis/smtp_server.rb', line 4 def password @password end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
4 5 6 |
# File 'lib/maildis/smtp_server.rb', line 4 def port @port end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/maildis/smtp_server.rb', line 4 def username @username end |