Sha256: 30585b8a06a6b69c60e01fd1836f6c2c8c06536a62f263860c71dea3a96e6111
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
module Tufy module Fields module Account class BuildUnbilledBalanceField < 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::UNBILLED_BALANCE_TAG + FormatStrings::F2TS % raw_data[:unbilled_balance].to_i.to_s.size + raw_data[:unbilled_balance].to_i.to_s end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tufy-0.0.7 | lib/tufy/fields/account/build_unbilled_balance_field.rb |