Method: ADAL::Util#string_hash

Defined in:
lib/adal/util.rb

#string_hash(hash) ⇒ Object

Converts every key and value of a hash to string.

Parameters:

  • Hash

Returns:

  • Hash



45
46
47
# File 'lib/adal/util.rb', line 45

def string_hash(hash)
  hash.map { |k, v| [k.to_s, v.to_s] }.to_h
end