lib/portatext/command/api/sms_campaign.rb in portatext-1.1.4 vs lib/portatext/command/api/sms_campaign.rb in portatext-1.1.5

- old
+ new

@@ -7,15 +7,14 @@ # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class SmsCampaign < Campaigns def use_template(template_id, variables) - set :template_id, template_id - set :variables, variables + set :settings, template_id: template_id, variables: variables end def text(text) - set :text, text + set :settings, text: text end def initialize super set :type, 'sms'