class Gitlab::ObjectifiedHash

def initialize(hash)

Creates a new ObjectifiedHash object.
def initialize(hash)
  @hash = hash
  @data = hash.each_with_object({}) do |(key, value), data|
    value = self.class.new(value) if value.is_a? Hash
    value = value.map { |v| v.is_a?(Hash) ? self.class.new(v) : v } if value.is_a? Array
    data[key.to_s] = value
  end
end