Class: Mailstro::RealStrategy
- Inherits:
-
Object
- Object
- Mailstro::RealStrategy
- Defined in:
- lib/mailstro.rb
Overview
Allows us to remove default behaviour during testing.
Class Method Summary collapse
- .deliver(options) ⇒ Object
- .list_deliver(options) ⇒ Object
- .subscribe(contact_email, list_type, list_name) ⇒ Object
- .unsubscribe(contact_email, list_type, list_name) ⇒ Object
Class Method Details
.deliver(options) ⇒ Object
17 18 19 |
# File 'lib/mailstro.rb', line 17 def deliver() Delivery.new().deliver end |
.list_deliver(options) ⇒ Object
20 21 22 |
# File 'lib/mailstro.rb', line 20 def list_deliver() ListDelivery.new().deliver end |
.subscribe(contact_email, list_type, list_name) ⇒ Object
23 24 25 |
# File 'lib/mailstro.rb', line 23 def subscribe(contact_email, list_type, list_name) ListSubscribe.new(contact_email, list_type, list_name).deliver end |
.unsubscribe(contact_email, list_type, list_name) ⇒ Object
26 27 28 |
# File 'lib/mailstro.rb', line 26 def unsubscribe(contact_email, list_type, list_name) ListUnsubscribe.new(contact_email, list_type, list_name).deliver end |