Sha256: b6e80744ed076092357eae723a95f7a2e263aa9ec16ef316cedc2b97d2281d17

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

require 'effective_resources'
require 'effective_logging'
require 'effective_postmark/engine'
require 'effective_postmark/version'

module EffectivePostmark

  def self.config_keys
    [
      :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject,
      :layout, :api_token
    ]
  end

  include EffectiveGem

  def self.api
    Effective::PostmarkApi.new(api_token: api_token)
  end

  def self.mailer_class
    mailer&.constantize || Effective::PostmarkMailer
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_postmark-0.3.1 lib/effective_postmark.rb
effective_postmark-0.3.0 lib/effective_postmark.rb
effective_postmark-0.2.0 lib/effective_postmark.rb
effective_postmark-0.1.3 lib/effective_postmark.rb
effective_postmark-0.1.2 lib/effective_postmark.rb
effective_postmark-0.1.1 lib/effective_postmark.rb
effective_postmark-0.1.0 lib/effective_postmark.rb