lib/smshelper/api/traitel.rb in smshelper-0.2.5 vs lib/smshelper/api/traitel.rb in smshelper-0.2.6

- old
+ new

@@ -24,10 +24,10 @@ :output => :verbose, :concatenate => true } options = options.merge(@extra_options) unless @extra_options.nil? resp = (get 'smsgateway.pl', :extra_query => options.merge(q)) #; resp.split(',')[2] - process_response_code(resp) ? (@sent_message_ids << resp.split(',')[2]).first : (raise ErrorDuringSend "Could not deliver") + process_response_code(resp) ? (@sent_message_ids << resp.split(',')[2]; resp.split(',')[2]) : (raise ErrorDuringSend "Could not deliver") end def get_balance {'AUD' => (get 'selfserve.pl', :extra_query => {:mode => :balance}).split(' ').last.strip} end