lib/pushpop-twilio.rb in pushpop-twilio-0.1.1 vs lib/pushpop-twilio.rb in pushpop-twilio-0.1.2
- old
+ new
@@ -25,11 +25,9 @@
_from = self._from || TWILIO_FROM
_body = self._body
if _to && _from && _body
send_message(_to, _from, _body)
- else
- raise 'Please configure to, from, and body to send an SMS'
end
end
def send_message(to, from, body)
client = ::Twilio::REST::Client.new(TWILIO_SID, TWILIO_AUTH_TOKEN)