Module: SidekiqUniqueJobs::Normalizer

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

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)
  Sidekiq.load_json(Sidekiq.dump_json(args))
end