Class: Drill::Mail::Default
- Inherits:
-
Base
- Object
- Base
- Drill::Mail::Default
show all
- Defined in:
- lib/drill/mail/default.rb
Instance Attribute Summary
Attributes inherited from Base
#params
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Drill::Base
Instance Method Details
#deliver ⇒ Object
8
9
10
11
12
|
# File 'lib/drill/mail/default.rb', line 8
def deliver
template_name = params.template_name
Drill.client.messages.send_template(template_name, [], message_hash)
end
|
#deliver_later ⇒ Object
14
15
16
17
18
|
# File 'lib/drill/mail/default.rb', line 14
def deliver_later
template_name = params.template_name
Drill::DeliveryWorker.perform_async(template_name, message_hash)
end
|