lib/mailstro/delivery.rb in mailstro-0.0.5 vs lib/mailstro/delivery.rb in mailstro-0.0.6

- old
+ new

@@ -1,21 +1,21 @@ module Mailstro class Delivery < Resource - def self.deliver(template_name, contact_email, payload) - new(template_name, contact_email, payload).deliver + 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, payload) + def initialize(template_name, contact_email, data) @template_name = template_name @contact_email = contact_email - @payload = payload + @data = data end def deliver post("deliveries", :template_name => @template_name, :contact_email => @contact_email, - :payload => @payload) + :data => @data) end end end