Class: Lipwig::Senders::Abstract
- Inherits:
-
Object
- Object
- Lipwig::Senders::Abstract
- Defined in:
- lib/lipwig/senders/abstract.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(email) ⇒ Abstract
constructor
A new instance of Abstract.
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
#call ⇒ Object
10 11 12 |
# File 'lib/lipwig/senders/abstract.rb', line 10 def call raise NoMethodError, "Sender must implement this call method" end |