class Eddy::Segments::IEA

### Segment Summary:

Public Class Methods

new(store, interchange_control_number, number_of_functional_groups) click to toggle source

@param store [Eddy::Data::Store] @param interchange_control_number [Integer] A unique *interchange control number*. @param number_of_functional_groups [Integer] Number of functional groups included in an Interchange. @return [void]

Calls superclass method Eddy::Models::Segment::new
# File lib/definitions/segments/manual/envelopes/iea.rb, line 14
def initialize(store, interchange_control_number, number_of_functional_groups)
  @id = "IEA"
  @name = "Interchange Control Trailer"
  @iea01 = Eddy::Elements::I16.new(ref: "IEA01", req: "M", val: number_of_functional_groups)
  @iea02 = Eddy::Elements::I12.new(ref: "IEA02", req: "M", val: interchange_control_number)
  super(store, @iea01, @iea02)
end

Public Instance Methods

IEA01=(arg) click to toggle source

### 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]

# File lib/definitions/segments/manual/envelopes/iea.rb, line 32
def IEA01=(arg)
  @iea01.value = arg
end
IEA02=(arg) click to toggle source

### 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]

# File lib/definitions/segments/manual/envelopes/iea.rb, line 47
def IEA02=(arg)
  @iea02.value = arg
end
Also aliased as: InterchangeControlNumber=
InterchangeControlNumber=(arg)
Alias for: IEA02=
NumberOfIncludedFunctionalGroups=(arg)
Alias for: IEA01=