trusona/trusona-server-sdk-ruby

View on GitHub
lib/trusona/helpers/key_normalizer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Trusona
  module Helpers
    ##
    # Noramlizes keys by turning all key values into symbols
    module KeyNormalizer
      def normalize_keys(hash)
        hash.transform_keys(&:to_sym)
      end
    end
  end
end