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

- old
+ new

@@ -36,9 +36,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' + value = '%.2f' % value if %w(AMOUNT ORG_AMOUNT).include?(key) result[key] = value end result.delete_if { |_k, v| v.empty? }