Sha256: 6683e95cb4f83e7890b38529ee4eb953c5ea8df327b094f6af56e0f709030b64

Contents?: true

Size: 553 Bytes

Versions: 12

Compression:

Stored size: 553 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

      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

12 entries across 12 versions & 1 rubygems

Version Path
eancom-1.5.7 lib/eancom/edifact/segments/uns.rb
eancom-1.5.6 lib/eancom/edifact/segments/uns.rb
eancom-1.5.5 lib/eancom/edifact/segments/uns.rb
eancom-1.5.4 lib/eancom/edifact/segments/uns.rb
eancom-1.5.2 lib/eancom/edifact/segments/uns.rb
eancom-1.5.1 lib/eancom/edifact/segments/uns.rb
eancom-1.5.0 lib/eancom/edifact/segments/uns.rb
eancom-1.4.0 lib/eancom/edifact/segments/uns.rb
eancom-1.3.0 lib/eancom/edifact/segments/uns.rb
eancom-1.2.0 lib/eancom/edifact/segments/uns.rb
eancom-1.1.1 lib/eancom/edifact/segments/uns.rb
eancom-1.1.0 lib/eancom/edifact/segments/uns.rb