class ActionMailbox::Relayer::Result
Inherits From
-
class
Struct.new(:status_code, :message)
Public instance methods
Source code GitHub
# File actionmailbox/lib/action_mailbox/relayer.rb, line 14
def failure?
transient_failure? || permanent_failure?
end
Source code GitHub
# File actionmailbox/lib/action_mailbox/relayer.rb, line 22
def permanent_failure?
status_code.start_with?("5.")
end
Source code GitHub
# File actionmailbox/lib/action_mailbox/relayer.rb, line 10
def success?
!failure?
end
Source code GitHub
# File actionmailbox/lib/action_mailbox/relayer.rb, line 18
def transient_failure?
status_code.start_with?("4.")
end