Sha256: 5e789c9fce2087a3b5f105cc24c27a680a3e72f74ca7c1f9c8c9815e51413362
Contents?: true
Size: 563 Bytes
Versions: 7
Compression:
Stored size: 563 Bytes
Contents
module Tufy module Fields module Account class BuildUserIdField < BuildField expects :raw_data promises :transformed_data executed do |ctx| ctx.transformed_data = ctx.transformed_data + transform(ctx).upcase end private def self.transform(ctx) raw_data = ctx.raw_data BuildAccountSegment::Constants::USER_ID_TAG + FormatStrings::F2TS % raw_data[:user_id].size + raw_data[:user_id] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems