Module: Fog::Helpers::ProfitBricks::DataHelper

Instance Method Summary collapse

Instance Method Details

#flatten(response_json) ⇒ Object


5
6
7
8
# File 'lib/fog/profitbricks/helpers/compute/data_helper.rb', line 5

def flatten(response_json)
  %w(properties metadata entities resourceLimits).each { |k| response_json.merge!(response_json.delete(k)) if response_json.key?(k) }
  response_json
end