Sha256: 00c9cd672f43a2782d0a6fd678a218ac3213d4cafa65dd995281bb0b2e07514f

Contents?: true

Size: 600 Bytes

Versions: 12

Compression:

Stored size: 600 Bytes

Contents

module MnoEnterprise
  module MailAdapters
    # Test Adapter for MnoEnterprise::MailClient
    # Add messages to an internal array instead of sending them
    class TestAdapter < Adapter
      class << self
        # Send a template
        # @see Adapter#deliver
        def deliver(*args)
          send_template(*args)
        end

        # Send the provided template with options
        # SparkpostClient.send_template(template_name(string), template_content(array), message(hash))
        def send_template(*args)
          base_deliveries.push(*args)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/mail_adapters/test_adapter.rb
mno-enterprise-core-3.1.0 lib/mno_enterprise/mail_adapters/test_adapter.rb