Class: MailHandler::Sending::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/mailhandler/sending/base.rb

Overview

email sending handler class

Direct Known Subclasses

SMTPSender

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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()
  raise MailHandler::InterfaceError, 'Send interface not implemented.'
end

#valid_response?(_response) ⇒ Boolean

Returns:

  • (Boolean)

Raises:



20
21
22
# File 'lib/mailhandler/sending/base.rb', line 20

def valid_response?(_response)
  raise MailHandler::InterfaceError, 'Method not implemented.'
end