Class: Fingerprint::MD5

Inherits:
Sha1
  • Object
show all
Defined in:
app/models/fingerprint/md5.rb

Instance Attribute Summary

Attributes inherited from Sha1

#api_key, #notice

Instance Method Summary collapse

Methods inherited from Sha1

#file_or_message, generate, #initialize, #unified_message

Constructor Details

This class inherits a constructor from Fingerprint::Sha1

Instance Method Details

#fingerprint_sourceObject


9
10
11
# File 'app/models/fingerprint/md5.rb', line 9

def fingerprint_source
  location['method'] &&= sanitized_method_signature
end

#to_sObject


5
6
7
# File 'app/models/fingerprint/md5.rb', line 5

def to_s
  Digest::MD5.hexdigest(fingerprint_source)
end