Class: Lipwig::Senders::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/lipwig/senders/abstract.rb

Direct Known Subclasses

Postmark, SMTP

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email) ⇒ Abstract

Returns a new instance of Abstract.



6
7
8
# File 'lib/lipwig/senders/abstract.rb', line 6

def initialize(email)
  @email = email
end

Class Method Details

.call(email) ⇒ Object



2
3
4
# File 'lib/lipwig/senders/abstract.rb', line 2

def self.call(email)
  new(email).call
end

Instance Method Details

#callObject

Raises:

  • (NoMethodError)


10
11
12
# File 'lib/lipwig/senders/abstract.rb', line 10

def call
  raise NoMethodError, "Sender must implement this call method"
end