Sha256: 31b3ba78be93a3c2630e20da1dc7ea6a401bf7dcd2c8210746a1e74f8086746f

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

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

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

module Macaco
  class << self
    attr_accessor :config
  end

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

  class Configuration
    attr_accessor :api_key, :api_user, :sender

    def initialize
      @sender   = :mandrill
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
macaco-0.0.4 lib/macaco.rb
macaco-0.0.3 lib/macaco.rb