Class: SmsNotifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/sms_notifier.rb

Overview

WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Constant Summary collapse

@@from_address =
@config['config']['from_address']

Instance Method Summary collapse

Instance Method Details

#sms_message(recipient, message) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/sms_notifier.rb', line 28

def sms_message(recipient, message)
  content_type      "text/plain"
  recipients        recipient
  from              from_address
  
  body['message'] = message
end