Sha256: 1c069076a73b87893152e0fd990c5aaf324bcf47a7568bba374f8670feca38be
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
module Mailstro class Delivery < Resource def self.deliver(template_name, contact_email, data) new(template_name, contact_email, data).deliver end attr_reader :contact_email, :template_name def initialize(template_name, contact_email, data) @template_name = template_name @contact_email = contact_email @data = data end def deliver post("deliveries", :template_name => @template_name, :contact_email => @contact_email, :data => @data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailstro-0.0.6 | lib/mailstro/delivery.rb |