Sha256: 92f76ecb7a71a9fc3e7771dd727e9f4dc5e7e399dc8d627f50e921b9a8c9dde4
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true require 'drill/version' require 'drill/mailer' require 'drill/delivery_worker' require 'mandrill' module Drill Configuration = Struct.new( :api_key, :delivery_method, :default_vars, keyword_init: true ) module_function def configuration @configuration ||= Configuration.new( delivery_method: :default, default_vars: {} ) end def configure yield configuration end def client @client ||= Mandrill::API.new(configuration.api_key) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
drill-mailer-0.3.0 | lib/drill.rb |
drill-mailer-0.1.1 | lib/drill.rb |