Module: WirecardCheckoutPage::Utils

Included in:
CheckedResponse, ResponseChecksum
Defined in:
lib/wirecard_checkout_page/utils.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys(hash) ⇒ Object


2
3
4
5
6
# File 'lib/wirecard_checkout_page/utils.rb', line 2

def stringify_keys(hash)
  hash.each_with_object(hash.dup.clear) do |(k, v), new_hash|
    new_hash[k.to_s] = v
  end
end