Module: Tanshuku::Configuration::DefaultUrlHasher
- Defined in:
- lib/tanshuku/configuration.rb
Overview
The default object to hash a URL. Calls Digest::SHA512.hexdigest
.
Class Method Summary collapse
-
.call(url, namespace:) ⇒ String
Calls
Digest::SHA512.hexdigest
with the given URL string and the given namespace.
Class Method Details
.call(url, namespace:) ⇒ String
Calls Digest::SHA512.hexdigest
with the given URL string and the given namespace.
17 18 19 |
# File 'lib/tanshuku/configuration.rb', line 17 def self.call(url, namespace:) Digest::SHA512.hexdigest("#{namespace}#{url}") end |