Module: SimpleSegment::Utils

Included in:
Client, Configuration
Defined in:
lib/simple_segment/utils.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_keys(hash) ⇒ Object


3
4
5
6
7
# File 'lib/simple_segment/utils.rb', line 3

def symbolize_keys(hash)
  hash.each_with_object({}) { |(key, value), result|
    result[key.to_sym] = value
  }
end