Module: Net::SMTPError
- Included in:
- SMTPAuthenticationError, SMTPFatalError, SMTPServerBusy, SMTPSyntaxError, SMTPUnknownError, SMTPUnsupportedCommand
- Defined in:
- lib/net/smtp.rb
Overview
Module mixed in to all SMTP error classes
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
This class is a module for backward compatibility.
Instance Method Summary collapse
Instance Attribute Details
#response ⇒ Object (readonly)
This class is a module for backward compatibility. In later release, this module becomes a class.
31 32 33 |
# File 'lib/net/smtp.rb', line 31 def response @response end |
Instance Method Details
#initialize(response, message: nil) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/net/smtp.rb', line 33 def initialize(response, message: nil) if response.is_a?(::Net::SMTP::Response) @response = response @message = else @response = nil @message = || response end end |
#message ⇒ Object
43 44 45 |
# File 'lib/net/smtp.rb', line 43 def @message || response. end |