class Tufy::BuildContactNumberSegment

Constants

REQUIRED_KEYS

Private Class Methods

transform(ctx) click to toggle source
# File lib/tufy/build_contact_number_segment.rb, line 19
def self.transform(ctx)
  ctx[:segment_tag] = Constants::SEGMENT_TAG

  result = with(ctx).reduce(
    Fields::BuildSegmentTagField,
    Fields::ContactNumber::BuildContactNumberField,
    Fields::ContactNumber::BuildContactNumberFormatField,
    Fields::ContactNumber::BuildContactNumberTypeField,
  )

  result[:transformed_data]
end