lib/smsforall.rb in smsforall-0.1.0 vs lib/smsforall.rb in smsforall-0.1.1
- old
+ new
@@ -23,9 +23,10 @@
do_request("balance", {})["balance"]
end
# Send message
def send_message(sender,text,msisdn)
+ if sender.size > 11 then raise 'Sender name to long!' end
do_request("send", { :msisdn => msisdn, :sender => sender, :text => text })["transactionid"]
end
# Get status of transaction
def get_status(transactionid)