Sha256: 229e53898750a207c38d8a79d84b08861835231f692f87e699a0eb6764e8c609

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

module Eancom
  module Edifact
    class UNS < Segment
      TAG = 'UNS'.freeze
      TYPE = :header.freeze

      def initialize(
        tag: nil,
        section_identification:
      )
        @tag = tag
        @section_identification = section_identification

        super(tag: tag || TAG)
      end

      '''
      Why is line 22 commented?
      '''
      def to_json_hash
        hash = {}
        # hash.merge!(section_identification: find_identifier(:section_identification)) if @section_identification
        hash
      end

      def segment_type
        TYPE
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eancom-2.0.0 lib/eancom/edifact/segments/uns.rb