lib/portatext/command/api/sms_campaign.rb in portatext-1.5.16 vs lib/portatext/command/api/sms_campaign.rb in portatext-1.5.17
- old
+ new
@@ -11,14 +11,15 @@
def from_service(service_id)
set :service_id, service_id
end
def use_template(template_id, variables)
- set :settings, template_id: template_id, variables: variables
+ set_setting :template_id, template_id
+ set_setting :variables, variables
end
def text(text)
- set :settings, text: text
+ set_setting :text, text
end
def initialize
super
set :type, 'sms'