Class: Eddy::Segments::GS
- Inherits:
-
Models::Segment
- Object
- Models::Segment
- Eddy::Segments::GS
- Defined in:
- lib/definitions/segments/manual/envelopes/gs.rb
Overview
Segment Summary:
- Id: GS
- Name: Functional Group Header
- Purpose: To indicate the beginning 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
-
#GS01=(arg) ⇒ void
(also: #FunctionalIdentifierCode=)
GS01.
-
#GS02=(arg) ⇒ void
(also: #ApplicationSendersCode=)
GS02.
-
#GS03=(arg) ⇒ void
(also: #ApplicationReceiversCode=)
GS03.
-
#GS04=(arg) ⇒ void
(also: #Date=)
GS04.
-
#GS05=(arg) ⇒ void
(also: #Time=)
GS05.
-
#GS06=(arg) ⇒ void
(also: #GroupControlNumber=)
GS06.
-
#GS07=(arg) ⇒ void
(also: #ResponsibleAgencyCode=)
GS07.
-
#GS08=(arg) ⇒ void
(also: #VersionReleaseIndustryIdentifierCode=)
GS08.
- #initialize(store, group_control_number, functional_group) ⇒ void constructor
Methods inherited from Models::Segment
Constructor Details
#initialize(store, group_control_number, functional_group) ⇒ void
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 14 def initialize(store, group_control_number, functional_group) @id = "GS" @name = "Functional Group Header" @gs01 = Eddy::Elements::E479.new(ref: "GS01", req: "M", val: functional_group) @gs02 = Eddy::Elements::E142.new(ref: "GS02", req: "M", val: store.application_senders_code) @gs03 = Eddy::Elements::E124.new(ref: "GS03", req: "M", val: store.application_receivers_code) @gs04 = Eddy::Elements::E373.new(ref: "GS04", req: "M", val: store.time) @gs05 = Eddy::Elements::E337.new(ref: "GS05", req: "M", val: store.time) # TODO: Define time fmt for this. @gs06 = Eddy::Elements::E28.new(ref: "GS06", req: "M", val: group_control_number) @gs07 = Eddy::Elements::E455.new(ref: "GS07", req: "M") @gs08 = Eddy::Elements::E480.new(ref: "GS08", req: "M", val: store.version_release_industry_id_code) super( store, @gs01, @gs02, @gs03, @gs04, @gs05, @gs06, @gs07, @gs08, ) end |
Instance Method Details
#GS01=(arg) ⇒ void Also known as: FunctionalIdentifierCode=
This method returns an undefined value.
GS01
- Id: 479
- Name: Functional Identifier Code
- Type: ID
- Min/Max: 2/2
- Description: Code identifying a group of application related transaction sets
48 49 50 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 48 def GS01=(arg) @gs01.value = arg end |
#GS02=(arg) ⇒ void Also known as: ApplicationSendersCode=
This method returns an undefined value.
GS02
- Id: 142
- Name: Application Sender's Code
- Type: AN
- Min/Max: 2/15
- Description: Code identifying party sending transmission; codes agreed to by trading partners
63 64 65 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 63 def GS02=(arg) @gs02.value = arg end |
#GS03=(arg) ⇒ void Also known as: ApplicationReceiversCode=
This method returns an undefined value.
GS03
- Id: 124
- Name: Application Receiver's Code
- Type: AN
- Min/Max: 2/15
- Description: Code identifying party receiving transmission. Codes agreed to by trading partners
78 79 80 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 78 def GS03=(arg) @gs03.value = arg end |
#GS04=(arg) ⇒ void Also known as: Date=
This method returns an undefined value.
GS04
- Id: 373
- Name: Date
- Type: DT
- Min/Max: 8/8
- Description: Date expressed as CCYYMMDD
93 94 95 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 93 def GS04=(arg) @gs04.value = arg end |
#GS05=(arg) ⇒ void Also known as: Time=
This method returns an undefined value.
GS05
- Id: 337
- Name: Time
- Type: TM
- Min/Max: 4/8
- Description: Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
108 109 110 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 108 def GS05=(arg) @gs05.value = arg end |
#GS06=(arg) ⇒ void Also known as: GroupControlNumber=
This method returns an undefined value.
GS06
- Id: 28
- Name: Group Control Number
- Type: N0
- Min/Max: 1/9
- Description: Assigned number originated and maintained by the sender
123 124 125 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 123 def GS06=(arg) @gs06.value = arg end |
#GS07=(arg) ⇒ void Also known as: ResponsibleAgencyCode=
This method returns an undefined value.
GS07
- Id: 455
- Name: Responsible Agency Code
- Type: ID
- Min/Max: 1/2
- Description: Code used in conjunction with Data Element 480 to identify the issuer of the standard
Notes:
- (Default value:
"X"
)
141 142 143 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 141 def GS07=(arg) @gs07.value = arg end |
#GS08=(arg) ⇒ void Also known as: VersionReleaseIndustryIdentifierCode=
This method returns an undefined value.
GS08
- Id: 480
- Name: Version / Release / Industry Identifier Code
- Type: AN
- Min/Max: 1/12
- Description: Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
156 157 158 |
# File 'lib/definitions/segments/manual/envelopes/gs.rb', line 156 def GS08=(arg) @gs08.value = arg end |