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