Sha256: 977c9e2407d05b4d59f458135c05136e53a9f4b788706ee42d26106a9372fd0f
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
module Tufy module Fields module EmailAddress class BuildEmailAddressField < 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 BuildEmailAddressSegment::Constants::EMAIL_ADDRESS_TAG + FormatStrings::F2TS % raw_data[:email_address].size + raw_data[:email_address] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems