Sha256: 66c6a7b7d5191b3b4e348e84b5985438180bad0898d0aa008d803e2bf251b1e4
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
module Tufy module Fields module Address class BuildAddress2Field < 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 BuildAddressSegment::Constants::ADDRESS_LINE_2_TAG + FormatStrings::F2TS % remove_special_characters(raw_data[:address_line_2]).size + remove_special_characters(raw_data[:address_line_2]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tufy-0.0.8 | lib/tufy/fields/address/build_address_2_field.rb |
tufy-0.0.7 | lib/tufy/fields/address/build_address_2_field.rb |