Module: SidekiqUniqueJobs::Normalizer

Extended by:
JSON
Defined in:
lib/sidekiq_unique_jobs/normalizer.rb

Overview

Normalizes hashes by dumping them to json and loading them from json

Author:

Class Method Summary collapse

Methods included from JSON

dump_json, load_json, safe_load_json

Class Method Details

.jsonify(args) ⇒ Hash

Changes hash to a json compatible hash

Parameters:

Returns:

  • (Hash)

    a json compatible hash



13
14
15
# File 'lib/sidekiq_unique_jobs/normalizer.rb', line 13

def self.jsonify(args)
  load_json(dump_json(args))
end