Sha256: 1dc5d51e4c67c2e0fe9d50109593780617af04c938b1f65a2e205240e1be44d2
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true require 'monkey_mail/mail/base' module MonkeyMail module Mail class Default < Base def deliver return if params[:skip_delivery] MonkeyMail.client.send_template(**delivery_params) end def deliver_later(wait: nil) return if params[:skip_delivery] raise NotImplementedError # TODO # if wait # worker.perform_in(wait.to_i, template_name, message_hash) # else # worker.perform_async(template_name, message_hash) # end end private def worker MonkeyMail::DeliveryWorker end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
monkey-mail-0.1.1 | lib/monkey_mail/mail/default.rb |
monkey-mail-0.1.0 | lib/monkey_mail/mail/default.rb |