Class: ETL::Transform::Md5Transform

Inherits:
Transform show all
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)

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 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