Sha256: f4bcc1e4afc5b41cfd40218a7c748bdaa9fa763fba41f4f55f38735ab259d82e
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# ShortMessage # [](http://badge.fury.io/rb/short_message) ## Installation ## Add it to your Gemfile: ```ruby gem 'short_message' ``` Run the following command to install it: ```console bundle install ``` Run the generator: ```console rails generate short_message:install ``` And rake the migrations: ```console rake db:migrate ``` ## Usage ## Create a message and deliver it: ```ruby @sms = ShortMessage::Message.new(:sender => "0041791234567", :recipient => "0041799876543", :text => "Hello World!") @sms.deliver ``` ## Customization ## ### Status Codes ## If you need to customize the status response codes simply edit the internationalization files in config/locales ### Params ### To override the params string add this to an initializer file (or put it into config/initializers/short_message.rb) ```ruby ShortMessage::Message.module_eval do private def build_deliver_params_string # your code here end def build_recharge_params_string amount # your code here end end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
short_message-0.1.0 | README.md |
short_message-0.0.6 | README.md |
short_message-0.0.5 | README.md |