Class: Net::SMTP::Proxy
- Defined in:
- lib/net/smtp/proxy.rb,
lib/net/smtp/proxy/version.rb,
lib/net/smtp/proxy/delivery_method.rb
Defined Under Namespace
Classes: DeliveryMethod
Constant Summary collapse
- VERSION =
'2.0.0'
Instance Attribute Summary collapse
-
#proxy_address ⇒ Object
readonly
Returns the value of attribute proxy_address.
-
#proxy_port ⇒ Object
readonly
Returns the value of attribute proxy_port.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address, port, proxy_address, proxy_port) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(address, port, proxy_address, proxy_port) ⇒ Proxy
Returns a new instance of Proxy.
18 19 20 21 22 |
# File 'lib/net/smtp/proxy.rb', line 18 def initialize(address, port, proxy_address, proxy_port) super(address, port) @proxy_address = proxy_address @proxy_port = proxy_port end |
Instance Attribute Details
#proxy_address ⇒ Object (readonly)
Returns the value of attribute proxy_address.
9 10 11 |
# File 'lib/net/smtp/proxy.rb', line 9 def proxy_address @proxy_address end |
#proxy_port ⇒ Object (readonly)
Returns the value of attribute proxy_port.
9 10 11 |
# File 'lib/net/smtp/proxy.rb', line 9 def proxy_port @proxy_port end |
Class Method Details
.start(address, port = nil, proxy_address = nil, proxy_port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil, &block) ⇒ Object
12 13 14 15 |
# File 'lib/net/smtp/proxy.rb', line 12 def start(address, port = nil, proxy_address = nil, proxy_port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil, &block) new(address, port, proxy_address, proxy_port).start(helo, user, secret, authtype, &block) end |