Class: ParameterSubstitution::Formatters::Md5

Inherits:
Base
  • Object
show all
Defined in:
lib/parameter_substitution/formatters/md5.rb

Class Method Summary collapse

Methods inherited from Base

encoding, has_parameters?, key, parse_duration

Class Method Details

.descriptionObject



4
5
6
# File 'lib/parameter_substitution/formatters/md5.rb', line 4

def self.description
  "Generates an md5 hash of the value."
end

.format(value) ⇒ Object



8
9
10
# File 'lib/parameter_substitution/formatters/md5.rb', line 8

def self.format(value)
  Digest::MD5.hexdigest(value.to_s)
end