Sha256: 121a742b381c09b07dfafc5bf677ffaafcc6a0e18a658c5c377b1435c25abf3c
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module DashamailTransactional class Request def initialize @http = DashaMail::HTTP.new end def send(message) answer = @http.post('transactional.send', message) Response.new(answer) end def check(transaction_id) answer = @http.get('transactional.check', { transaction_id: transaction_id }) Response.new(answer) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dashamail_transactional-0.1.3.1 | lib/dashamail/request.rb |
dashamail_transactional-0.1.3 | lib/dashamail/request.rb |
dashamail_transactional-0.1.2 | lib/dashamail/request.rb |