Sha256: a9caa2b022e882bc82303425ccb188fd020632c1f3eac9950be8b33c2f5c2a47

Contents?: true

Size: 1.81 KB

Versions: 13

Compression:

Stored size: 1.81 KB

Contents

tag = 'UNA'
Eancom.register_segment(tag: tag, klass: Eancom::Edifact::UNA)

structure = Eancom::Edifact::Structure.new(tag: tag)

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 3,
  dictionary: nil,
  description: "Service String Advice",
  required: true
)
composite.add(:tag, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Component data element separator",
  required: true
)
composite.add(:una1, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Data element separator",
  required: true
)
composite.add(:una2, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Decimal notation",
  required: true
)
composite.add(:una3, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Release character",
  required: true
)
composite.add(:una4, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Reserved for future use",
  required: true
)
composite.add(:una5, data)
structure << composite

composite = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: nil,
  description: "Segment terminator",
  required: true
)
composite.add(:una6, data)
structure << composite

Eancom.register_structure(tag: tag, structure: structure)


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eancom-1.6.0 definitions/segments/una.rb
eancom-1.5.7 definitions/segments/una.rb
eancom-1.5.6 definitions/segments/una.rb
eancom-1.5.5 definitions/segments/una.rb
eancom-1.5.4 definitions/segments/una.rb
eancom-1.5.2 definitions/segments/una.rb
eancom-1.5.1 definitions/segments/una.rb
eancom-1.5.0 definitions/segments/una.rb
eancom-1.4.0 definitions/segments/una.rb
eancom-1.3.0 definitions/segments/una.rb
eancom-1.2.0 definitions/segments/una.rb
eancom-1.1.1 definitions/segments/una.rb
eancom-1.1.0 definitions/segments/una.rb