Sha256: 2d6f8ce15525c84b1c6506847f6586535db380097da4dc198ba1a036c00e9ab9
Contents?: true
Size: 670 Bytes
Versions: 7
Compression:
Stored size: 670 Bytes
Contents
module Tufy module Fields module Account class BuildNumberOfDaysPastDueField < 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::NUMBER_OF_DAYS_PAST_DUE_TAG + FormatStrings::F2TS % (FormatStrings::F3TS % raw_data[:number_of_days_past_due]).size + FormatStrings::F3TS % raw_data[:number_of_days_past_due] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems