lib/macaco.rb in macaco-0.0.1 vs lib/macaco.rb in macaco-0.0.2
- old
+ new
@@ -1,11 +1,13 @@
require 'net/http'
require 'json'
require 'open-uri'
require 'macaco/version'
-require 'macaco/messages'
+require 'macaco/api'
+require 'macaco/senders/sender'
+require 'macaco/senders/mandrill'
module Macaco
class << self
attr_accessor :config
end
@@ -14,14 +16,13 @@
self.config ||= Configuration.new
yield(config)
end
class Configuration
- attr_accessor :api_key, :api_root, :api_port
+ attr_accessor :api_key, :sender
def initialize
- @api_key = ENV['MANDRILL_API_KEY']
- @api_root = 'mandrillapp.com'
- @api_port = 443
+ @api_key = ENV['MACACO_API_KEY']
+ @sender = :mandrill
end
end
-end
\ No newline at end of file
+end