Sha256: a4cacb7b32f815fa314d408e87b222d41f482e904b638ef04422f2dfe1d0cc16

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 KB

Contents

module Eddy
  module Segments
    # ### Segment Summary:
    #
    # - Id: REF
    # - Name: Reference Identification
    # - Purpose: To specify identifying information.
    class REF < Eddy::Models::Segment

      # @param store [Eddy::Data::Store]
      # @return [void]
      def initialize(store)
        @id = "REF"
        @name = "Reference Identification"
        @ref01 = Eddy::Elements::E128.new(ref: "REF01", req: "M")
        @ref02 = Eddy::Elements::E127.new(ref: "REF02", req: "X")
        super(
          store,
          @ref01,
          @ref02,
        )
      end

      # ### REF01
      #
      # - Id: 128
      # - Name: Reference Identification Qualifier
      # - Type: ID
      # - Min/Max: 2/3
      # - Description: Code qualifying the Reference Identification
      #
      # @param arg [String]
      # @return [void]
      def REF01=(arg)
        @ref01.value = arg
      end
      alias ReferenceIdentificationQualifier= REF01=

      # ### REF02
      #
      # - Id: 127
      # - Name: Reference Identification
      # - Type: AN
      # - Min/Max: 1/30
      # - Description: Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
      #
      # @param arg [String]
      # @return [void]
      def REF02=(arg)
        @ref02.value = arg
      end
      alias ReferenceIdentification= REF02=

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eddy-0.8.4 lib/definitions/segments/generated/ref.rb
eddy-0.8.3 lib/definitions/segments/generated/ref.rb
eddy-0.8.2 lib/definitions/segments/generated/ref.rb
eddy-0.8.1 lib/definitions/segments/generated/ref.rb
eddy-0.8.0 lib/definitions/segments/generated/ref.rb
eddy-0.7.0 lib/definitions/segments/generated/ref.rb
eddy-0.6.0 lib/definitions/segments/generated/ref.rb