dpaluy/sendgrid-threads

View on GitHub
lib/sendgrid_threads/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'logger'

module SendgridThreads

  class Config
    attr_accessor :key, :secret, :url, :logger, :raise_exceptions

    def logger
      @logger ||= Logger.new(STDERR)
    end
  end

  def self.configure
    yield config
  end

  def self.config
    @config ||= Config.new
  end

end