Sha256: 30e139a8329eab8ff84878868d18b59f34862e93fcf4d0332dda4f2f4fce7cb4
Contents?: true
Size: 502 Bytes
Versions: 3
Compression:
Stored size: 502 Bytes
Contents
module Mailstro class Delivery < Resource def initialize(options) @options = options end def contact_email @options.fetch(:to) end def template_name @options.fetch(:template_name) end def template_data @options.fetch(:template_data, nil) end def deliver post("deliveries", :contact_email => contact_email, :template_name => template_name, :template_data => template_data ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mailstro-0.0.9 | lib/mailstro/delivery.rb |
mailstro-0.0.8 | lib/mailstro/delivery.rb |
mailstro-0.0.7 | lib/mailstro/delivery.rb |