Sha256: 7d416d452b113f28ca82cc78397380664087afde05bdf66c9034f4168123523b

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

module Mail
  class Postmark
    def initialize(values)
      self.settings = {:api_key => nil}.merge(values)
    end
    
    attr_accessor :settings
    
    def deliver!(mail)
      ::Postmark.api_key = settings[:api_key]
      ::Postmark.send_through_postmark(mail)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postmark-0.8.0 lib/mail/postmark.rb