Sha256: 523cb9eef43ad18eb37c10d931ef9288c0ef47889fe2aec63ba568c0a1e8b900

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 786
    # - Name: Security Level Code
    # - Type: ID
    # - Min/Max: 2/2
    # - Description: Code indicating the level of confidentiality assigned by the sender to the information following
    class E786 < Eddy::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "786"
        @name = "Security Level Code"
        @description = "Code indicating the level of confidentiality assigned by the sender to the information following"
        super(
          min: 2,
          max: 2,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "00", # Company Non-Classified
          "01", # Company Internal Use Only
          "02", # Company Confidential
          "03", # Company Confidential, Restricted (Need to Know)
          "04", # Company Registered (Signature Required)
          "05", # Personal
          "06", # Supplier Proprietary
          "09", # Company Defined (Trading Partner Level)
          "11", # Competition Sensitive
          "20", # Court Restricted
          "21", # Juvenile Record Restricted
          "90", # Government Non-Classified
          "92", # Government Confidential
          "93", # Government Secret
          "94", # Government Top Secret
          "99", # Government Defined (Trading Partner Level)
          "ZZ", # Mutually Defined
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/generated/786.security_level_code.rb
eddy-0.5.0 lib/definitions/elements/generated/786.security_level_code.rb
eddy-0.4.0 lib/definitions/elements/generated/786.security_level_code.rb
eddy-0.3.0 lib/definitions/elements/generated/786.security_level_code.rb