Sha256: 7bbae328fa4b143b31d5ae54e5b3c7e2760e5af5d9a8733dffcec04efa500eee

Contents?: true

Size: 299 Bytes

Versions: 14

Compression:

Stored size: 299 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
postmark-0.9.14 lib/postmark/handlers/mail.rb
postmark-0.9.13 lib/postmark/handlers/mail.rb
postmark-0.9.12 lib/postmark/handlers/mail.rb
postmark-0.9.11 lib/postmark/handlers/mail.rb
postmark-0.9.10 lib/postmark/handlers/mail.rb
postmark-0.9.9 lib/postmark/handlers/mail.rb
postmark-0.9.8 lib/postmark/handlers/mail.rb
postmark-0.9.6 lib/postmark/handlers/mail.rb
postmark-0.9.5 lib/postmark/handlers/mail.rb
postmark-0.9.4 lib/postmark/handlers/mail.rb
postmark-0.9.3 lib/postmark/handlers/mail.rb
postmark-0.9.2 lib/postmark/handlers/mail.rb
postmark-0.9.1 lib/postmark/handlers/mail.rb
postmark-0.9.0 lib/postmark/handlers/mail.rb