Sha256: 4ede5195fb6dd085fed82090fb5d4515c2f347892b48dd66826fb027fa2827e2
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 Bytes
Contents
module Tufy module Fields module Account class BuildNumberOfInstallmentsField < 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_INSTALLMENTS_TAG + FormatStrings::F2TS % raw_data[:number_of_installments].to_i.to_s.size + raw_data[:number_of_installments].to_i.to_s end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems