class PortaText::Command::Api::SmsCampaign
An SMS campaign. github.com/PortaText/docs/wiki/REST-API#api_campaigns
- Author
-
Marcelo Gornstein (marcelog@portatext.com)
- Copyright
-
Copyright © 2015
PortaText
- License
-
Apache-2.0
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/portatext/command/api/sms_campaign.rb, line 24 def initialize super set :type, 'sms' end
Public Instance Methods
from_service(service_id)
click to toggle source
# File lib/portatext/command/api/sms_campaign.rb, line 11 def from_service(service_id) set :service_id, service_id end
text(text)
click to toggle source
# File lib/portatext/command/api/sms_campaign.rb, line 20 def text(text) set_setting :text, text end
use_template(template_id, variables)
click to toggle source
# File lib/portatext/command/api/sms_campaign.rb, line 15 def use_template(template_id, variables) set_setting :template_id, template_id set_setting :variables, variables end