Sha256: 8ac7302e314fe382f51b3da65751e7dc2e821d018f56f7742397d702a42a87b5

Contents?: true

Size: 995 Bytes

Versions: 4

Compression:

Stored size: 995 Bytes

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: I14
    # - Name: Usage Indicator
    # - Type: ID
    # - Min/Max: 1/1
    # - Description: Code to indicate whether data enclosed by this interchange envelope is test, production or information
    class I14 < Eddy::Element::ID

      # @param val [String] (nil)
      # @param req [String] (nil)
      # @param ref [String] (nil)
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "I14"
        @name = "Usage Indicator"
        @description = "Code to indicate whether data enclosed by this interchange envelope is test, production or information"
        super(
          min: 1,
          max: 1,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "I", # Information
          "P", # Production Data
          "T", # Test Data
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/manual/i/I14.usage_indicator.rb
eddy-0.5.0 lib/definitions/elements/manual/i/I14.usage_indicator.rb
eddy-0.4.0 lib/definitions/elements/manual/i/I14.usage_indicator.rb
eddy-0.3.0 lib/definitions/elements/manual/i/I14.usage_indicator.rb