Sha256: a56bed0da2c03bc871351d0dee66f2348d4470be078b732af68fa8cf05e2b59d

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

require 'digest/sha1'

module ETL #:nodoc:
  module Transform #:nodoc:
    # Transform which hashes the original value with a SHA-1 hash algorithm
    class Sha1Transform < ETL::Transform::Transform
      def initialize(control, configuration={})
        super
      end
      def transform(value)
        Digest::SHA1.hexdigest(value)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activewarehouse-etl-0.1.0 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-0.2.0 lib/etl/transform/sha1_transform.rb
activewarehouse-etl-0.3.0 lib/etl/transform/sha1_transform.rb