Class: Keysms::SMS
- Inherits:
-
KeyteqService
- Object
- KeyteqService
- Keysms::SMS
- Defined in:
- lib/keysms.rb
Instance Attribute Summary
Attributes inherited from KeyteqService
Instance Method Summary collapse
Methods inherited from KeyteqService
Constructor Details
This class inherits a constructor from Keysms::KeyteqService
Instance Method Details
#send(message, receivers, options = {}) ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/keysms.rb', line 89 def send(, receivers, = {}) @options = @options.merge() @options[:path] = "/messages" if (receivers.is_a? String) receivers = [receivers] end @payload[:message] = @payload[:receivers] = receivers prepare_request prepare_session call end |