Sha256: 6dc4ce36c7b153102ce3176c08507a41bde60ec41dcc2a427fd3d1cdb981d45c

Contents?: true

Size: 1.34 KB

Versions: 11

Compression:

Stored size: 1.34 KB

Contents

module Eddy
  module Segments
    # ### Segment Summary:
    #
    # - Id: MAN
    # - Name: Marks and Numbers
    # - Purpose: To indicate identifying marks and numbers for shipping containers.
    class MAN < Eddy::Models::Segment

      # @param store [Eddy::Data::Store]
      # @return [void]
      def initialize(store)
        @id = "MAN"
        @name = "Marks and Numbers"
        @man01 = Eddy::Elements::E88.new(ref: "MAN01", req: "M")
        @man02 = Eddy::Elements::E87.new(ref: "MAN02", req: "M")
        super(
          store,
          @man01,
          @man02,
        )
      end

      # ### MAN01
      #
      # - Id: 88
      # - Name: Marks and Numbers Qualifier
      # - Type: ID
      # - Min/Max: 1/2
      # - Description: Code specifying the application or source of Marks and Numbers (87)
      #
      # @param arg [String]
      # @return [void]
      def MAN01=(arg)
        @man01.value = arg
      end
      alias MarksAndNumbersQualifier= MAN01=

      # ### MAN02
      #
      # - Id: 87
      # - Name: Marks and Numbers
      # - Type: AN
      # - Min/Max: 1/48
      # - Description: Marks and numbers used to identify a shipment or parts of a shipment
      #
      # @param arg [String]
      # @return [void]
      def MAN02=(arg)
        @man02.value = arg
      end
      alias MarksAndNumbers= MAN02=

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eddy-0.10.0 lib/definitions/segments/generated/man.rb
eddy-0.9.2 lib/definitions/segments/generated/man.rb
eddy-0.9.1 lib/definitions/segments/generated/man.rb
eddy-0.9.0 lib/definitions/segments/generated/man.rb
eddy-0.8.4 lib/definitions/segments/generated/man.rb
eddy-0.8.3 lib/definitions/segments/generated/man.rb
eddy-0.8.2 lib/definitions/segments/generated/man.rb
eddy-0.8.1 lib/definitions/segments/generated/man.rb
eddy-0.8.0 lib/definitions/segments/generated/man.rb
eddy-0.7.0 lib/definitions/segments/generated/man.rb
eddy-0.6.0 lib/definitions/segments/generated/man.rb