Module: Waves::Request::Utilities

Defined in:
lib/waves/request/request.rb

Class Method Summary collapse

Class Method Details

.destructure(hash) ⇒ Object



125
126
127
128
129
130
131
# File 'lib/waves/request/request.rb', line 125

def self.destructure( hash )
  destructured = {}
  hash.keys.map { |key| key.split('.') }.each do |keys|
    destructure_with_array_keys(hash, '', keys, destructured)
  end
  destructured
end