Class: Eddy::Segments::GE
- Inherits:
-
Models::Segment
- Object
- Models::Segment
- Eddy::Segments::GE
- Defined in:
- lib/definitions/segments/manual/envelopes/ge.rb
Overview
Segment Summary:
- Id: GE
- Name: Functional Group Trailer
- Purpose: To indicate the end of a functional group and to provide control information.
Instance Attribute Summary
Attributes inherited from Models::Segment
#elements, #id, #name, #skip, #store
Instance Method Summary collapse
-
#GE01=(arg) ⇒ void
(also: #NumberOfTransactionSetsIncluded=)
GE01.
-
#GE02=(arg) ⇒ void
(also: #GroupControlNumber=)
GE02.
- #initialize(store, group_control_number, number_of_transaction_sets) ⇒ void constructor
Methods inherited from Models::Segment
Constructor Details
#initialize(store, group_control_number, number_of_transaction_sets) ⇒ void
14 15 16 17 18 19 20 |
# File 'lib/definitions/segments/manual/envelopes/ge.rb', line 14 def initialize(store, group_control_number, number_of_transaction_sets) @id = "GE" @name = "Functional Group Trailer" @ge01 = Eddy::Elements::E97.new(ref: "GE01", req: "M", val: number_of_transaction_sets) @ge02 = Eddy::Elements::E28.new(ref: "GE02", req: "M", val: group_control_number) super(store, @ge01, @ge02) end |
Instance Method Details
#GE01=(arg) ⇒ void Also known as: NumberOfTransactionSetsIncluded=
This method returns an undefined value.
GE01
- Id: 97
- Name: Number of Transaction Sets Included
- Type: N0
- Min/Max: 1/6
- Description: Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element
32 33 34 |
# File 'lib/definitions/segments/manual/envelopes/ge.rb', line 32 def GE01=(arg) @ge01.value = arg end |
#GE02=(arg) ⇒ void Also known as: GroupControlNumber=
This method returns an undefined value.
GE02
- Id: 28
- Name: Group Control Number
- Type: N0
- Min/Max: 1/9
- Description: Assigned number originated and maintained by the sender
47 48 49 |
# File 'lib/definitions/segments/manual/envelopes/ge.rb', line 47 def GE02=(arg) @ge02.value = arg end |