lib/oschadbank/params_builder.rb in oschadbank-0.1.5 vs lib/oschadbank/params_builder.rb in oschadbank-0.1.6

- old
+ new

@@ -35,9 +35,10 @@ @params.each do |key, value| key = REQUEST_PARAMS[key] || key value = value.to_s value = value.encode('CP1251', 'UTF-8') if key == 'DESC' + value = value.rjust(6, '0') if key == 'ORDER' result[key] = value end result.delete_if { |_k, v| v.empty? }