lib/smshelper/api/bulksms.rb in smshelper-0.4.5 vs lib/smshelper/api/bulksms.rb in smshelper-0.4.6

- old
+ new

@@ -19,10 +19,10 @@ options = { :msisdn => message.recipient, :message => message.text, :sender => message.sender} - options = options.merge(@extra_options) unless @extra_options.nil? + options.merge!(@extra_options) unless @extra_options.nil? resp = (post 'eapi/submission/send_sms/2/2.0', :extra_query => options.merge(q)).split('|') process_response_code(resp.first) ? (@sent_message_ids << resp.last.strip; resp.last.strip) : (raise ErrorDuringSend, @response_code.bulksms(resp.first)) end def get_balance