Module: ZQuickblox::Util
- Defined in:
- lib/zquickblox/util.rb
Class Method Summary collapse
Class Method Details
.symbolize_keys(hash) ⇒ Object
4 5 6 7 8 |
# File 'lib/zquickblox/util.rb', line 4 def symbolize_keys(hash) new_hash = Hash.new hash.each { |key, value| new_hash[key.to_sym] = value } return new_hash end |