Sha256: 1f3d66093953718bd05399269b1ed0a7c75eddd47c0787c58a07724560095ef8
Contents?: true
Size: 1023 Bytes
Versions: 3
Compression:
Stored size: 1023 Bytes
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 run 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 the code below 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-1.0.2 | README.md |
short_message-1.0.1 | README.md |
short_message-1.0.0 | README.md |