Sha256: c89347d47c7ffa6734b2ce988bf83d31537688624cbacb42edbad960278cf34e

Contents?: true

Size: 276 Bytes

Versions: 16

Compression:

Stored size: 276 Bytes

Contents

module Eancom
  module Edifact
    class Header < DocumentElement

      def to_json_hash
        hash = {}
        hash[:header] = {}
        @segments.each do |segment|
          hash[:header].merge! segment.to_json_hash
        end
        hash
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eancom-1.6.3 lib/eancom/edifact/header.rb
eancom-1.6.2 lib/eancom/edifact/header.rb
eancom-1.6.0 lib/eancom/edifact/header.rb
eancom-1.5.7 lib/eancom/edifact/header.rb
eancom-1.5.6 lib/eancom/edifact/header.rb
eancom-1.5.5 lib/eancom/edifact/header.rb
eancom-1.5.4 lib/eancom/edifact/header.rb
eancom-1.5.2 lib/eancom/edifact/header.rb
eancom-1.5.1 lib/eancom/edifact/header.rb
eancom-1.5.0 lib/eancom/edifact/header.rb
eancom-1.4.0 lib/eancom/edifact/header.rb
eancom-1.3.0 lib/eancom/edifact/header.rb
eancom-1.2.0 lib/eancom/edifact/header.rb
eancom-1.1.1 lib/eancom/edifact/header.rb
eancom-1.1.0 lib/eancom/edifact/header.rb
eancom-2.0.0 lib/eancom/edifact/header.rb