A gem for http://ssms.ws API.
Configure it first with:
SSMS.configure do |config|
config.username = "username"
config.password = "password"
config.sender = "sender"
end
Then sms_client = SSMS::SMS.new
.
sms_client = SSMS::SMS.new
result = sms_client.send(number, message, language) # returns the response by the API.
result.success? # returns true if the message was sent successfully.
sms_client.balance # returns your remaining balance.
Please check ssms.ws API documentation.
Since most Arabic SMS provides use similar APIs you could easy modify this code to work with your provider.