Module: Kaal::SchedulerHashTransform

Included in:
SchedulerFileLoader
Defined in:
lib/kaal/scheduler_file/hash_transform.rb,
sig/kaal/scheduler_file/hash_transform.rbs

Overview

Shared deep hash key transformation helpers for scheduler payloads.

Instance Method Summary collapse

Instance Method Details

#stringify_keys(object) ⇒ Kaal::rbs_any

Parameters:

  • object (Kaal::rbs_any)

Returns:

  • (Kaal::rbs_any)


14
15
16
# File 'lib/kaal/scheduler_file/hash_transform.rb', line 14

def stringify_keys(object)
  Kaal::Support::HashTools.stringify_keys(object)
end

#symbolize_keys_deep(object) ⇒ Kaal::rbs_any

Parameters:

  • object (Kaal::rbs_any)

Returns:

  • (Kaal::rbs_any)


18
19
20
# File 'lib/kaal/scheduler_file/hash_transform.rb', line 18

def symbolize_keys_deep(object)
  Kaal::Support::HashTools.symbolize_keys(object)
end