Sha256: b3538e97267ea52b0f8b3fde4bbc35cafb90b86f978c16dcfeaf864c042e74d7

Contents?: true

Size: 654 Bytes

Versions: 15

Compression:

Stored size: 654 Bytes

Contents

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

      attr_reader :segment_type

      def initialize(
        tag: nil,
        control_total_type_code_quantifier:,
        control_total_value:,
        measurment_unit_code: nil
      )
        @tag = tag
        @control_total_type_code_quantifier = control_total_type_code_quantifier
        @control_total_value = control_total_value
        @measurment_unit_code = measurment_unit_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/cnt.rb
eancom-1.6.2 lib/eancom/edifact/segments/cnt.rb
eancom-1.6.0 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.7 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.6 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.5 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.4 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.2 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.1 lib/eancom/edifact/segments/cnt.rb
eancom-1.5.0 lib/eancom/edifact/segments/cnt.rb
eancom-1.4.0 lib/eancom/edifact/segments/cnt.rb
eancom-1.3.0 lib/eancom/edifact/segments/cnt.rb
eancom-1.2.0 lib/eancom/edifact/segments/cnt.rb
eancom-1.1.1 lib/eancom/edifact/segments/cnt.rb
eancom-1.1.0 lib/eancom/edifact/segments/cnt.rb