Module: Trusona::Helpers::KeyNormalizer
- Included in:
- Mappers::BaseMapper, Resources::Device, Resources::DeviceUserBinding, Resources::DeviceUserBindingActivation, Resources::IdentityDocument, Resources::TruCode, Resources::Trusonafication, Resources::User, Resources::UserAccount, Trusonafication
- Defined in:
- lib/trusona/helpers/key_normalizer.rb
Overview
Noramlizes keys by turning all key values into symbols
Instance Method Summary collapse
Instance Method Details
#normalize_keys(hash) ⇒ Object
8 9 10 11 12 |
# File 'lib/trusona/helpers/key_normalizer.rb', line 8 def normalize_keys(hash) hash.each_with_object({}) do |(k, v), memo| memo[k.to_sym] = v end end |