Class: Emarsys::DeliveryMethod::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/emarsys/delivery_method/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(_options = {}) ⇒ Base

Returns a new instance of Base.



4
5
# File 'lib/emarsys/delivery_method/base.rb', line 4

def initialize(_options = {})
end

Instance Method Details

#deliver!(mail) ⇒ Object



8
9
10
# File 'lib/emarsys/delivery_method/base.rb', line 8

def deliver!(mail)
  ::Emarsys::Api::Services.new.email_queue get_customer(mail), build_params(mail)
end