Sha256: f56436620df5d5bc29dd7f44874e1b5a3977902997c92171bd5693885bfb17a2

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 1232
    # - Name: Purchase Category
    # - Type: ID
    # - Min/Max: 2/2
    # - Description: Code identifying the broad category of products or services being acquired
    class E1232 < Eddy::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "1232"
        @name = "Purchase Category"
        @description = "Code identifying the broad category of products or services being acquired"
        super(
          min: 2,
          max: 2,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "AE", # Architect and Engineering
          "CN", # Construction
          "DR", # Demolish, Dismantle or Replace
          "ER", # Equipment Rental
          "HW", # Hardware
          "IR", # Inspect and Repair as Necessary
          "MD", # Modification
          "OV", # Overhaul
          "RD", # Research and Development
          "RE", # Repair
          "SB", # Shipbuilding
          "SP", # Supplies
          "SU", # Subsistence
          "SV", # Services
          "TE", # Test and Evaluation
          "UT", # Utilities
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/generated/1232.purchase_category.rb
eddy-0.5.0 lib/definitions/elements/generated/1232.purchase_category.rb
eddy-0.4.0 lib/definitions/elements/generated/1232.purchase_category.rb
eddy-0.3.0 lib/definitions/elements/generated/1232.purchase_category.rb