Module: SwiftypeEnterprise::Utils

Extended by:
Utils
Included in:
Utils
Defined in:
lib/swiftype-enterprise/utils.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys(hash) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/swiftype-enterprise/utils.rb', line 5

def stringify_keys(hash)
  output = {}
  hash.each do |key, value|
    output[key.to_s] = value
  end
  output
end