Sha256: bd728a903cca83c732f0107c81a5052e0802dbfeea5af7732a61e964f634001f

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

require 'net/http'
require 'json'
require 'open-uri'

require 'macaco/version'
require 'macaco/api'
require 'macaco/senders/sender'
require 'macaco/senders/mandrill'

module Macaco
  class << self
    attr_accessor :config
  end

  def self.configure
    self.config ||= Configuration.new
    yield(config)
  end

  class Configuration
    attr_accessor :api_key, :sender

    def initialize
      @api_key  = ENV['MACACO_API_KEY']
      @sender   = :mandrill
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
macaco-0.0.2 lib/macaco.rb