class Tufy::BuildIdSegment

Constants

REQUIRED_KEYS

Private Class Methods

id_type_exists?(id_type) click to toggle source
# File lib/tufy/build_id_segment.rb, line 36
def self.id_type_exists?(id_type)
  Constants::ID_TYPES.include?(id_type)
end
transform(ctx) click to toggle source
# File lib/tufy/build_id_segment.rb, line 24
def self.transform(ctx)
  ctx[:segment_tag] = Constants::SEGMENT_TAG

  result = with(ctx).reduce(
    Fields::BuildSegmentTagField,
    Fields::Id::BuildIdNumberField,
    Fields::Id::BuildIdTypeField,
  )

  result[:transformed_data]
end