lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.87.0

- old
+ new

@@ -69,11 +69,11 @@ gsub(%r((<CardCSC>)[^<]+(<))i, '\1[FILTERED]\2') end private - CURRENCY_CODES = Hash.new{|h,k| raise ArgumentError.new("Unsupported currency: #{k}")} + CURRENCY_CODES = Hash.new { |h, k| raise ArgumentError.new("Unsupported currency: #{k}") } CURRENCY_CODES['NZD'] = '554' def add_invoice(post, money, options) post[:Amount] = amount(money) post[:Reference] = options[:order_id] @@ -170,10 +170,10 @@ response end def parse_element(response, node) if node.has_elements? - node.elements.each{|element| parse_element(response, element) } + node.elements.each { |element| parse_element(response, element) } else response[node.name.underscore.to_sym] = node.text end end