Class: Eztexting::Sms
Class Method Summary collapse
-
.multi(messages) ⇒ Array
Send Out Multiple Messages.
-
.single(opts = {}) ⇒ Array
Send out a singular SMS.
Methods inherited from Base
Class Method Details
.multi(messages) ⇒ Array
Send Out Multiple Messages
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/eztexting/sms.rb', line 19 def self.multi() location = "/sending" results = [] .each_with_index do |msg, i| opts = msg response = self.do_post(location,opts) response_result = self.process(response) results << {:message => i, :result => response_result} end return results end |
.single(opts = {}) ⇒ Array
Send out a singular SMS
7 8 9 10 11 12 13 14 |
# File 'lib/eztexting/sms.rb', line 7 def self.single(opts={}) location = "/sending" response = self.do_post(location,opts) response_result = self.process(response) return self.processed_reponse(response_result,response) end |