Sha256: 14c386c9aae86b45a5fd716f98e7a707938d2c2b44c56215543778f138847d37

Contents?: true

Size: 1.3 KB

Versions: 15

Compression:

Stored size: 1.3 KB

Contents

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

structure = Eancom::Edifact::Structure.new(tag: tag)
#==============================================================================
# Tag                                                                         #
#==============================================================================
tag = Eancom::Edifact::Composite.new()
data = Eancom::Edifact::Data.new(
  type: String,
  length: 3,
  dictionary: nil,
  description: "Message Header",
  required: true
)
tag.add(:tag, data)

structure << tag
#==============================================================================
# Section identification
#==============================================================================
section_identification = Eancom::Edifact::Composite.new()

data = Eancom::Edifact::Data.new(
  type: String,
  length: 1,
  dictionary: {
    'S' => {
      description: 'Detail/summary section separation',
      identifier: 'detail_summary_section_separation'
    }
  },
  description: "Section identification",
  required: true
)
section_identification.add(:section_identification, data)

structure << section_identification
#==============================================================================
Eancom.register_structure(tag: 'UNS', structure: structure)

Version data entries

15 entries across 15 versions & 1 rubygems

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