class DAF::SMSAction
An action that sends an sms using twilio based on parameters
Public Instance Methods
client()
click to toggle source
# File lib/daf/actions/sms_action.rb, line 15 def client @client ||= Twilio::REST::Client.new(@sid, @token) end
invoke()
click to toggle source
# File lib/daf/actions/sms_action.rb, line 19 def invoke @message_id = client.account.messages.create(body: @message, to: @to, from: @from) end