Sha256: 4a0e913b308bf82d14881dfe4c18d6d66ad7e19a0cffb3bb21ce6557ca9e6d30
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
module Tufy module Fields module Account class BuildReportedDateField < BuildField expects :raw_data promises :transformed_data executed do |ctx| if ctx.raw_data[:reported_date] ctx.transformed_data = ctx.transformed_data + transform(ctx).upcase end end private def self.transform(ctx) raw_data = ctx.raw_data BuildAccountSegment::Constants::REPORTED_DATE_TAG + FormatStrings::F2TS % transform_date(DateTime.now).size + transform_date(DateTime.now) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems