Sha256: c8b034a2290f48ce940621509c673597a8f066c416e3dc2096a333b5a413644c
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
module Eddy module Segments # ### Segment Summary: # # - Id: IEA # - Name: Interchange Control Trailer # - Purpose: To define the end of an interchange of zero or more functional groups and interchange-related control segments. class IEA < Eddy::Segment # @param store [Eddy::Data::Store] # @param interchange_control_number [Integer] # @return [void] def initialize(store, interchange_control_number) @id = "IEA" @name = "Interchange Control Trailer" @iea01 = Eddy::Elements::I16.new(ref: "IEA01", req: "M", val: store.number_of_included_functional_groups) @iea02 = Eddy::Elements::I12.new(ref: "IEA02", req: "M", val: interchange_control_number) super(store, @iea01, @iea02) end # ### ISA01 # # - Id: I16 # - Name: Number of Included Functional Groups # - Type: N0 # - Min/Max: 1/5 # - Description: A count of the number of functional groups included in an interchange # # @param arg [Integer] # @return [void] def IEA01=(arg) @iea01.value = arg end alias NumberOfIncludedFunctionalGroups= IEA01= # ### ISA02 # # - Id: I12 # - Name: Interchange Control Number # - Type: N0 # - Min/Max: 9/9 # - Description: A control number assigned by the interchange sender # # @param arg [Integer] # @return [void] def IEA02=(arg) @iea02.value = arg end alias InterchangeControlNumber= IEA02= end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eddy-0.4.0 | lib/definitions/segments/manual/envelopes/iea.rb |
eddy-0.3.0 | lib/definitions/segments/manual/envelopes/iea.rb |