lib/mailstro.rb in mailstro-0.0.2 vs lib/mailstro.rb in mailstro-0.0.3
- old
+ new
@@ -1,18 +1,20 @@
require "mailstro/version"
require "mailstro/configuration"
require "mailstro/delivery"
+require "mailstro/response"
module Mailstro
class << self
attr_accessor :configuration
end
def self.configure
self.configuration ||= Configuration.new
yield(configuration)
+ configuration.validate!
end
- def self.deliver(*args)
- Delivery.deliver(*args)
+ def self.deliver(template, recipient, payload = {})
+ Delivery.deliver(template, recipient, payload)
end
end