Class: Net::SMTPErrors

Inherits:
ProtoAuthError
  • Object
show all
Includes:
SMTPError
Defined in:
lib/smtp/patch/smtp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ SMTPErrors

Returns a new instance of SMTPErrors.



7
8
9
10
# File 'lib/smtp/patch/smtp.rb', line 7

def initialize(errors)
  @errors = errors
  super message
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



5
6
7
# File 'lib/smtp/patch/smtp.rb', line 5

def errors
  @errors
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/smtp/patch/smtp.rb', line 12

def message
  "failed to deliver for #{errors}."
end