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

- old
+ new

@@ -55,11 +55,11 @@ commit('refund', post) end private - CURRENCY_CODES = Hash.new{|h,k| raise ArgumentError.new("Unsupported currency for HDFC: #{k}")} + CURRENCY_CODES = Hash.new { |h, k| raise ArgumentError.new("Unsupported currency for HDFC: #{k}") } CURRENCY_CODES['AED'] = '784' CURRENCY_CODES['AUD'] = '036' CURRENCY_CODES['CAD'] = '124' CURRENCY_CODES['EUR'] = '978' CURRENCY_CODES['GBP'] = '826' @@ -111,10 +111,10 @@ doc = Nokogiri::XML.fragment(fix_xml(xml)) doc.children.each do |node| if node.text? next - elsif (node.elements.size == 0) + elsif node.elements.size == 0 response[node.name.downcase.to_sym] = node.text else node.elements.each do |childnode| name = "#{node.name.downcase}_#{childnode.name.downcase}" response[name.to_sym] = childnode.text