Module: Stupidedi::Versions::Interchanges::FourHundred
- Defined in:
- lib/stupidedi/versions/interchanges/00400.rb,
lib/stupidedi/versions/interchanges/00400/element_defs.rb,
lib/stupidedi/versions/interchanges/00400/segment_defs.rb,
lib/stupidedi/versions/interchanges/00400/interchange_def.rb,
lib/stupidedi/versions/interchanges/00400/segment_defs/IEA.rb,
lib/stupidedi/versions/interchanges/00400/segment_defs/ISA.rb,
lib/stupidedi/versions/interchanges/00400/segment_defs/TA1.rb
Overview
Defined Under Namespace
Modules: ElementDefs, SegmentDefs
Constant Summary collapse
- InterchangeDef =
Class.new(Schema::InterchangeDef) do # @group Constructors ##################################################################### # @return [Values::InterchangeVal] def empty(separators) Values::InterchangeVal.new(self, [], separators) end # @endgroup ##################################################################### # @return [Module] def segment_dict SegmentDefs end # @return [Reader::Separators] def separators(isa) Reader::Separators.new(isa.element(16).to_s, nil, nil, nil) end # @return [SegmentVal] def replace_separators(isa, separators) isa.copy \ :separators => separators, :children => [isa.element(1), isa.element(2), isa.element(3), isa.element(4), isa.element(5), isa.element(6), isa.element(7), isa.element(8), isa.element(9), isa.element(10), isa.element(11), isa.element(12), isa.element(13), isa.element(14), isa.element(15), isa.element(16).copy(:value => separators.component)] end end.new "00400", # Interchange header [ SegmentDefs::ISA.use(1, r::Mandatory, s::RepeatCount.bounded(1)), SegmentDefs::TA1.use(4, r::Optional, s::RepeatCount.unbounded) ], # Interchange trailer [ SegmentDefs::IEA.use(5, r::Mandatory, s::RepeatCount.bounded(1)) ]