Class: SMS::Backend::Base

Inherits:
Thing
  • Object
show all
Defined in:
lib/rubysms/backend.rb

Direct Known Subclasses

Clickatell, DRB, GSM, HTTP

Instance Attribute Summary

Attributes inherited from Thing

#label, #router

Instance Method Summary collapse

Methods inherited from Thing

#incoming, #outgoing, #start, #stop

Instance Method Details

#send_sms(msg) ⇒ Object

This method should be called (via super) by all backends before sending a message, so it can be logged, and apps are notified



57
58
59
# File 'lib/rubysms/backend.rb', line 57

def send_sms(msg)
	router.outgoing(msg)
end