Sha256: d0df43d15594489cdf0d97d3e18cd9159d4324ace51554a166397231c8dc6d74

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

module Eddy
  module Segments
    # ### Segment Summary:
    #
    # - Id: N2
    # - Name: Additional Name Information
    # - Purpose: To identify a party by type of organization, name, and code.
    class N2 < Eddy::Segment

      # @param store [Eddy::Data::Store]
      # @return [void]
      def initialize(store)
        @id = "N2"
        @name = "Additional Name Information"
        @n201 = Eddy::Elements::E93.new(ref: "N201", req: "M")
        @n202 = Eddy::Elements::E93.new(ref: "N202", req: "O")
        super(store, @n201, @n202)
      end

      # ### N201
      #
      # - Id: 93
      # - Name: Name
      # - Type: AN
      # - Min/Max: 1/60
      # - Description: Free-form name
      #
      # @param arg [String]
      # @return [void]
      def N201=(arg)
        @n201.value = arg
      end
      alias Name1= N201=

      # ### N202
      #
      # - Id: 93
      # - Name: Name
      # - Type: AN
      # - Min/Max: 1/60
      # - Description: Free-form name
      #
      # @param arg [String]
      # @return [void]
      def N202=(arg)
        @n202.value = arg
      end
      alias Name2= N202=

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/segments/manual/n2.rb
eddy-0.5.0 lib/definitions/segments/manual/n2.rb
eddy-0.4.0 lib/definitions/segments/manual/n2.rb
eddy-0.3.0 lib/definitions/segments/manual/n2.rb