Module: Elastic::WorkplaceSearch::Utils

Extended by:
Utils
Included in:
Utils
Defined in:
lib/elastic/workplace-search/utils.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys(hash) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/elastic/workplace-search/utils.rb', line 6

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