Class: PerformLater::PayloadHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/perform_later/payload_helper.rb

Class Method Summary collapse

Class Method Details

.get_digest(klass, method, *args) ⇒ Object



3
4
5
6
7
8
# File 'lib/perform_later/payload_helper.rb', line 3

def self.get_digest(klass, method, *args)
  args = args.flatten
  payload = {:class => klass, :method => method.to_s, :args => args}.to_s
  digest = Digest::MD5.hexdigest(payload)
  digest
end