Class: ETL::Transform::Md5Transform
- Defined in:
- lib/etl/transform/md5_transform.rb
Overview
Transform which hashes the original value with a MD5 hash algorithm
Instance Attribute Summary
Attributes inherited from Transform
#configuration, #control, #name
Instance Method Summary collapse
-
#transform(name, value, row) ⇒ Object
Transform the value with a MD5 digest algorithm.
Methods inherited from Transform
benchmarks, #initialize, transform
Constructor Details
This class inherits a constructor from ETL::Transform::Transform
Instance Method Details
#transform(name, value, row) ⇒ Object
Transform the value with a MD5 digest algorithm.
8 9 10 |
# File 'lib/etl/transform/md5_transform.rb', line 8 def transform(name, value, row) Digest::MD5.hexdigest(value) end |