Class: MailHandler::Sending::Sender
- Inherits:
-
Object
- Object
- MailHandler::Sending::Sender
- Defined in:
- lib/mailhandler/sending/base.rb
Overview
email sending handler class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Sender
constructor
A new instance of Sender.
- #send(_email) ⇒ Object
- #valid_response?(_response) ⇒ Boolean
Constructor Details
#initialize(type) ⇒ Sender
Returns a new instance of Sender.
12 13 14 |
# File 'lib/mailhandler/sending/base.rb', line 12 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/mailhandler/sending/base.rb', line 10 def type @type end |
Instance Method Details
#send(_email) ⇒ Object
16 17 18 |
# File 'lib/mailhandler/sending/base.rb', line 16 def send(_email) raise MailHandler::InterfaceError, 'Send interface not implemented.' end |
#valid_response?(_response) ⇒ Boolean
20 21 22 |
# File 'lib/mailhandler/sending/base.rb', line 20 def valid_response?(_response) raise MailHandler::InterfaceError, 'Method not implemented.' end |