class MailHandler::Sending::Sender
email sending handler class
Attributes
type[R]
Public Instance Methods
send(_email)
click to toggle source
# File lib/mailhandler/sending/base.rb, line 12 def send(_email) raise MailHandler::InterfaceError, 'Send interface not implemented.' end
valid_response?(_response)
click to toggle source
# File lib/mailhandler/sending/base.rb, line 16 def valid_response?(_response) raise MailHandler::InterfaceError, 'Method not implemented.' end
Protected Instance Methods
verify_email(email)
click to toggle source
# File lib/mailhandler/sending/base.rb, line 22 def verify_email(email) return if email.is_a?(allowed_email_type) raise MailHandler::TypeError, "Invalid type error, only #{allowed_email_type} object type for sending allowed." end
Private Instance Methods
allowed_email_type()
click to toggle source
# File lib/mailhandler/sending/base.rb, line 30 def allowed_email_type Mail::Message end