Class: Mail::Relayer::Result
- Inherits:
-
Struct
- Object
- Struct
- Mail::Relayer::Result
- Defined in:
- lib/mail/relayer.rb
Overview
rubocop:disable Style/StructInheritance
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
9 10 11 |
# File 'lib/mail/relayer.rb', line 9 def @message end |
#status_code ⇒ Object
Returns the value of attribute status_code
9 10 11 |
# File 'lib/mail/relayer.rb', line 9 def status_code @status_code end |
Instance Method Details
#failure? ⇒ Boolean
14 15 16 |
# File 'lib/mail/relayer.rb', line 14 def failure? transient_failure? || permanent_failure? end |
#permanent_failure? ⇒ Boolean
22 23 24 |
# File 'lib/mail/relayer.rb', line 22 def permanent_failure? status_code.start_with?("5.") end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/mail/relayer.rb', line 10 def success? !failure? end |
#transient_failure? ⇒ Boolean
18 19 20 |
# File 'lib/mail/relayer.rb', line 18 def transient_failure? status_code.start_with?("4.") end |