Sha256: 34334e4045cfb4735ba179db1f275dcb514da57bc75e5694529924251a04c9c5

Contents?: true

Size: 702 Bytes

Versions: 15

Compression:

Stored size: 702 Bytes

Contents

module Eancom
  module Edifact
    class CPS < Segment
      TAG = 'CPS'.freeze
      TYPE = :body.freeze

      def initialize(
        tag: nil,
        hierarchical_structure_level_identifier:,
        hierarchical_structure_parent_identifier: nil,
        packaging_level_code: nil
      )
        @tag = tag
        @hierarchical_structure_level_identifier = hierarchical_structure_level_identifier
        @hierarchical_structure_parent_identifier = hierarchical_structure_parent_identifier
        @packaging_level_code = packaging_level_code

        super(tag: tag || TAG)
      end

      def to_json_hash
        {}
      end

      def segment_type
        TYPE
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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