Sha256: 76370f414a83a6c8b79de1db20d03627a18bba735acd20b20779c1ae0f6daecb

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

require 'uakari'
module Mail
  class Chimpster
    
    attr_accessor :settings, :uakari
    
    def initialize(values)
      self.settings = { :api_key => nil, :to=> nil, :from=>nil}.merge(values)
      self.uakari = Uakari.new(self.settings[:api_key])
    end
    
    def deliver!(mail)
      ::Chimpster.uakari = uakari
      ::Chimpster.send_through_chimpster(mail)
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chimpster-0.1.17 lib/chimpster/handlers/mail.rb