Cellular
Sending and receiving SMSs with Ruby through pluggable backends.
Supported Ruby versions: 1.9.3 or higher
Licensed under the MIT license, see LICENSE for more information.
Installation
Add this line to your application's Gemfile:
gem 'cellular'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cellular
Usage
Configuration
Cellular.configure do |config|
config.username = 'username'
config.password = 'password'
config.backend = Cellular::Backends::Sendega
config.sender = 'Default custom sender'
end
Available Backends
- CoolSMS (http://coolsms.com/)
- Sendega (http://sendega.com/)
Sending SMSs
The options supported may differ between backends.
sms = Cellular::SMS.new(
recipient: '47xxxxxxxx',
sender: 'Custom sender',
message: 'This is an SMS message'
)
sms.deliver
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create pull request
Credits
Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this library we probably want to hire you.




